Last active
June 14, 2018 08:00
-
-
Save sirrapa/ed994e5e623b92adb86f7ba3f9540c3f to your computer and use it in GitHub Desktop.
Get a list of installed jenkins plugins with name and version pair
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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