Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created July 15, 2018 08:54
Show Gist options
  • Save jamesridgway/7e1a3ca380630d5fa0f9b6bec64f5fdf to your computer and use it in GitHub Desktop.
Save jamesridgway/7e1a3ca380630d5fa0f9b6bec64f5fdf to your computer and use it in GitHub Desktop.
List installed Jenkins plugins
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