Skip to content

Instantly share code, notes, and snippets.

@clifford-github
Last active August 7, 2023 07:58
Show Gist options
  • Save clifford-github/7748223 to your computer and use it in GitHub Desktop.
Save clifford-github/7748223 to your computer and use it in GitHub Desktop.
Get list of Jobs in a View Groovy from within Jenkins. Run the following snippet in the Scripting console or a Groovy build step. The latter requires the installation of the Groovy plugin
hudson.model.Hudson.instance.getView('<VIEW>').items.each() {
println it.fullDisplayName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment