Created
July 15, 2018 08:54
-
-
Save jamesridgway/7e1a3ca380630d5fa0f9b6bec64f5fdf to your computer and use it in GitHub Desktop.
List installed Jenkins plugins
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 instance = Jenkins.getInstance() | |
def pluginManager = instance.getPluginManager() | |
def plugins = pluginManager.getPlugins() | |
def installedPlugins = [] | |
plugins.each { | |
installedPlugins << it.getShortName() | |
} | |
return installedPlugins.sort() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment