Issue
- A plugin is preventing Jenkins to restart
- I need to disable a plugin and Jenkins is down
How to Uninstall a jenkins plugin using command line?
Uninstalling a plugin removes the plugin binary (*.jpi or *.hpi) from the disk. The plugin continues to function normally until you restart Jenkins, but once you restart, Jenkins will behave as if you didn’t have the plugin to being with.
Uninstalling a plugin, however, does not remove the configuration that the plugin might have created. If you want to scrab the configuration left by uninstalled plugins, go to “Manage Jenkins” and click “Manage Old Data”.
How to disable a jenkins plugin using command line?
To disable a plugin via File System, create a file like .jpi.disabled inside the $JENKINS_HOME/plugins folder. For example, to disable Green balls plugin, run:
$ touch $JENKINS_HOME/plugins/greenballs.jpi.disabledCode language: PHP (php)
Plugins that are disabled can be re-enabled from the UI (or by removing *.jpi.disabled (or *.hpi.disabled) file from the disk.)
Reference
https://support.cloudbees.com/hc/en-us/articles/204323074-How-to-disable-a-plugin-when-Jenkins-is-down-
https://wiki.jenkins.io/display/JENKINS/Removing+and+disabling+plugins
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals