Skip to content

Instantly share code, notes, and snippets.

@sirrapa
Last active June 14, 2018 08:00
Show Gist options
  • Save sirrapa/ed994e5e623b92adb86f7ba3f9540c3f to your computer and use it in GitHub Desktop.
Save sirrapa/ed994e5e623b92adb86f7ba3f9540c3f to your computer and use it in GitHub Desktop.
Get a list of installed jenkins plugins with name and version pair
List<String> jenkinsPlugins = new ArrayList<String>(Jenkins.instance.pluginManager.plugins);
jenkinsPlugins.sort { it.shortName }
.each { plugin ->
println (" - ${plugin.shortName}:${plugin.version}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment