Skip to content

Instantly share code, notes, and snippets.

@jweyrich
Created March 11, 2022 19:50
Show Gist options
  • Save jweyrich/29c7a1a5d271b1d9d7fe3a65154b9352 to your computer and use it in GitHub Desktop.
Save jweyrich/29c7a1a5d271b1d9d7fe3a65154b9352 to your computer and use it in GitHub Desktop.
Jenkins - List all installed plugins and their versions
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
plugins.each {println “${it.getShortName()}:${it.getVersion()}“}
println “Total number of plugins: ${plugins.size()}”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment