Search code examples
jenkinsjenkins-plugins

How to get plugins that depends on a certain plugin in Jenkins?


various Jenkins modules were deprecated the past few weeks. While I could uninstall most of them I'm unable to remove multiple-scms plugin, since some other plugin(s) seem to require it.

I was unable get a list of plugins that require multiple-scms through the plugin page search.

So is there any way to get a list of plugins that have a dependency on a certain plugin in Jenkins? Maybe with the help of a Groovy script?

Thanks.


Solution

  • Via script console:

    println Jenkins.instance.pluginManager.getPlugin("multiple-scms").getDependents()