Skip to content

Instantly share code, notes, and snippets.

@wkubota
Created December 17, 2015 02:34
Show Gist options
  • Save wkubota/4ab981a8ed1d1bed5d7a to your computer and use it in GitHub Desktop.
Save wkubota/4ab981a8ed1d1bed5d7a to your computer and use it in GitHub Desktop.
JenkinsのScript Consoleから実行すると全てのJobの名称を出力欄に列挙してくれるコードスニペット
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