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?
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.
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).
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With