Skip to content

Instantly share code, notes, and snippets.

@domofactor
Created September 18, 2017 18:01
Show Gist options
  • Save domofactor/628882dd2404d3a3ed516f352d0c68e0 to your computer and use it in GitHub Desktop.
Save domofactor/628882dd2404d3a3ed516f352d0c68e0 to your computer and use it in GitHub Desktop.
Script Console cmd for generating a list of installed plugins(and deps) on a Jenkins instance
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
plugins.each {
println "${it.getShortName()}:(${it.getVersion()}):${it.getDependencies()}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment