Created
May 9, 2017 14:39
-
-
Save OldCrowEW/68e461979841bf889da98a2a817f4af5 to your computer and use it in GitHub Desktop.
Reinstall All Current Jenkins Plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib/jenkins/plugins (or jenkins install dir) | |
for i in `ls -d */ | awk '{print substr($0, 1, length($0)-1)}'`; \ | |
do java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin $i; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment