how can I know whether the plugin is used by any jobs in jenkins

后端 未结 4 616
天涯浪人
天涯浪人 2021-01-31 07:39

Jenkins had 600+ plugins, in the real system, we are used to install lots of plugins.

And sometimes, we want to remove some plugins to make system more clean or replace

4条回答
  •  攒了一身酷
    2021-01-31 08:01

    I wrote this parameterized Jenkins job that searches config files. You only need to know what tags the plugin generates in the config file and to use that tag's name as parameter needle:

    cd  $JENKINS_HOME
    cd jobs
    echo searching for $needle
    find . -name config.xml -type f -exec grep $needle /dev/null {} \;
    

提交回复
热议问题