Created
June 15, 2016 11:47
-
-
Save sshnaidm/de0193be9366fa99de3a9d0fb90d9111 to your computer and use it in GitHub Desktop.
Bulk install Jenkins plugins
This file contains hidden or 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
for l in $(cat ~/jenkins_plugins.csv); | |
do | |
plugin=$(echo $l | cut -d";" -f1); | |
version=$(echo $l | cut -d";" -f2); | |
echo "Installing $plugin with version $version"; | |
arg="<install plugin=\"${plugin}@${version}\" />"; | |
cmd="curl -XPOST http://localhost:8080/pluginManager/installNecessaryPlugins -d ""'$arg'"; | |
$cmd; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment