Skip to content

Instantly share code, notes, and snippets.

@kisielk
Created December 5, 2012 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kisielk/4219727 to your computer and use it in GitHub Desktop.
Save kisielk/4219727 to your computer and use it in GitHub Desktop.
for(item in Jenkins.instance.items) {
println("job $item.name")
prop = item.getProperty(ParametersDefinitionProperty.class)
if(prop != null) {
newdefs = prop.getParameterDefinitions().findAll{p -> p.name != "TEST_FFDB_ROOT" && p.name != "NODE_VERSION"}
for(d in newdefs) {
println("$d.name")
}
newprop = ParameterDefinitionProperty(newdefs)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment