Created
December 2, 2013 13:43
-
-
Save clifford-github/7749616 to your computer and use it in GitHub Desktop.
Display all Jobs in tabbed/nested view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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