Created
December 17, 2015 02:34
-
-
Save wkubota/4ab981a8ed1d1bed5d7a to your computer and use it in GitHub Desktop.
JenkinsのScript Consoleから実行すると全てのJobの名称を出力欄に列挙してくれるコードスニペット
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
import hudson.model.* | |
displayChildren(Hudson.instance.items) | |
def displayChildren(items) { | |
for (item in items) { | |
if (item.class.canonicalName != 'com.cloudbees.hudson.plugins.folder.Folder') { | |
println(item.name) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment