Created
March 11, 2022 19:50
-
-
Save jweyrich/29c7a1a5d271b1d9d7fe3a65154b9352 to your computer and use it in GitHub Desktop.
Jenkins - List all installed plugins and their versions
This file contains 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
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