Skip to content

Instantly share code, notes, and snippets.

@clifford-github
Last active July 31, 2024 09:16
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