How do you uninstall a plugin?

How to uninstall a plugin from Jenkins (Hudson)?

  • 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 completely. What is the right process for completely removing a Jenkins (Hudson) plugin?

  • Answer:

    After stopping Hudson/Jenkins, go to your HUDSON_HOME/plugins directory and remove both the .hpi file and the folder with the same name. So, if you were going to remove the CVS plugin, you would remove both the cvs.hpi file and the cvs directory. After that, restart Hudson/Jenkins and the plugin won't be there anymore. I actually removed that CVS plugin earlier today when I upgraded to Jenkins, and I wasn't able to find any other official way to remove a plugin other than by hand.

Jim Hurne at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

http://wiki.hudson-ci.org/display/HUDSON/Plugins explains that some core plugins ("Tier 1" plugins, as they are called) are shipped with Hudson itself, and I assume cannot be deleted therefore.

flip

Deleting the <plugin>.hpi file and corresponding <plugin>-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

neoscribe

You can disable it using the Jenkins » Plugin Manager. Go to Installed tab and untick the plugins you want to uninstall and restart Jenkins. Though it does not unintall, at least keeps it away from appearing from configuration pages..

Sampath

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.