Jenkins had 600+ plugins, in the real system we are used to installing many plugins.
And sometimes we want to remove some plugins to make the system cleaner, or replace them with another mature plugin (another name).
This should ensure that no one / no work uses these plugins, or I must notify them.
Are there any ways in the configuration or somewhere on the Jenkins system to find out if the plugin is used for any tasks?
UPDATE 2013 Based on the answer below, I support a simple "plugin: keyword" display, for example
plugin_keys = { "git":'scm class="hudson.plugins.git.GitSCM"', "copyartifact":"hudson.plugins.copyartifact.CopyArtifact",
And find the plugin keyword from config.xml , all information (plugins, tasks, config) can be obtained through the remote jenkins API.
it works for me.
UPDATE 2014.04.26 A later version of jenkins, it seems that config.xml has been changed to have the plugin name there
like
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.4"> <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="throttle-concurrents@1.7.2"> <hudson.plugins.disk__usage.DiskUsageProperty plugin="disk-usage@0.18"/> <scm class="hudson.plugins.git.GitSCM" plugin="git@1.4.1-SNAPSHOT">
So I just check this plugin="<plugin name>" in config.xml , it works again
UPDATE 2014.05.05
See the full script at Gist jenkins-stats.py
UPDATE 2018.6.7
There is support for plugins using plugins (there is no REST API yet)
jenkins jenkins-plugins
Larry Cai Aug 09 '13 at 0:20 2013-08-09 00:20
source share