Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I 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?

like image 458
Jim Hurne Avatar asked Feb 11 '11 03:02

Jim Hurne


People also ask

How do I remove a plugin from Jenkins?

To uninstall a plugin, Go to Manage Jenkins → Manage plugins. Click on the Installed tab. Some of the plugins will have the Uninstall option. You can click these buttons to uninstall the plugins.

How do I uninstall plugin?

Go to Plugins. Go to Installed Plugins. Click Deactivate for the plugin you want to uninstall (you must deactivate it before you can delete it).

What is Hudson plugin?

Integral to Hudson is a plugin mechanism that allows third-parties to extend Hudson in several ways, including reporting test failures, results of automated code inspections, notification of broken builds and publication of build artifacts.

How do I remove a plugin folder?

Navigate to /public_html/wp-content/plugins/ and look for the plugin's folder. Delete it and any remaining files in there with it. Some plugins may add multiple folders, not always clearly named. Be careful when deleting anything you're not sure of, and make sure you back up your site first.


1 Answers

As mentioned by Jesse Glick in his answer, if you are using Jenkins 1.487 or higher, then there is a native way to uninstall plugins in the Jenkins UI. See JENKINS-3070 for details.

If you are using a version of Jenkins earlier than 1.487, then you can try manually uninstalling the plugin. As some people point out in the comments, this may not work on some platforms (in those cases, upgrade to at least 1.487 so that you can use the official uninstall feature).

To manually uninstall a plugin, stop 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.

like image 90
Mark Rushakoff Avatar answered Sep 29 '22 01:09

Mark Rushakoff