Skip to content

Instantly share code, notes, and snippets.

@clifford-github
Created December 2, 2013 13:43
Show Gist options
  • Save clifford-github/7749616 to your computer and use it in GitHub Desktop.
Save clifford-github/7749616 to your computer and use it in GitHub Desktop.
Display all Jobs in tabbed/nested view
jenkins.model.Jenkins.instance.getViews().each {
if (it.name.startsWith("Team")) {
println it.name
if (it instanceof hudson.plugins.nested_view.NestedView) {
it.getViews().each {
println "- " + it.name
it.getItems().each {
println "--- " + it.name
}
}
} else {
it.getItems().each {
println "--- " + it.name
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment