Jenkins Script Console: List installed plugins…

The Jenkins script console can be used to list all installed plugins and their versions fairly easily:

Jenkins.instance.pluginManager.plugins.each{
  plugin -> 
    println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}")
}

This can then be used to provision a new node or migrate to a new environment and have the destination Jenkins instance ready to go.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *