thijsthomas

jenkins plugins incl dependencies

Oct 7th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.29 KB | None | 0 0
  1. def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
  2. plugins.each {
  3.     def plugin = it.getShortName()
  4.     println "\"${plugin}\";"
  5.     def deps =  it.getDependencies()
  6.     deps.each {
  7.       def s = it.shortName
  8.       println "\"${plugin}\" -> \"${s}\";"
  9.     }
  10. }
  11.  
Add Comment
Please, Sign In to add comment