Skip to content

Instantly share code, notes, and snippets.

@ansig
Last active January 2, 2019 12:10
Show Gist options
  • Save ansig/9ec166a4bbeeb5aff1ebff1d4a2f3c58 to your computer and use it in GitHub Desktop.
Save ansig/9ec166a4bbeeb5aff1ebff1d4a2f3c58 to your computer and use it in GitHub Desktop.
List Jenkins plugins in sorted order
def plugins = Jenkins.instance.pluginManager.plugins.sort(mutate = false) { a, b -> a <=> b }.each {
println "${it.shortName}:${it.version}"
}
println "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment