How do I uninstall a plugin from Jenkins (Hudson)?

前端 未结 5 662
旧时难觅i
旧时难觅i 2021-02-02 05:35

I have a few plugins in my Jenkins installation which I no longer need. I\'ve already disabled the plugins (and my build still work), and I\'d like to remove the plugins complet

5条回答
  •  别那么骄傲
    2021-02-02 05:51

    Deleting the .hpi file and corresponding -plugin directory will effectively remove the plugin.

    However, if you have configured parameters that belong to the plugin within your jobs your Hudson or tomcat logs may contain *CannotResolveClassException: hudson.plugins ... * exceptions because it attempts to load the plugin. This can result in build failures even if build is successful.

    To fix that,

    • go to the job configuration and save it again. This should get rid of the plugin reference
    • if not, go into the hudson home jobs directory and open the config.xml found under the folder named after the job and remove the reference to the plugin
    • restart hudson

提交回复
热议问题