Skip to content

Instantly share code, notes, and snippets.

@peterwwillis
Created December 22, 2019 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterwwillis/b981361d125fc84ae270be92623543b9 to your computer and use it in GitHub Desktop.
Save peterwwillis/b981361d125fc84ae270be92623543b9 to your computer and use it in GitHub Desktop.
// from https://stackoverflow.com/questions/9815273/how-to-get-a-list-of-installed-jenkins-plugins-with-name-and-version-pair#12730830
// the sort version doesn't seem to work on my jenkins install
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment