Skip to content

Instantly share code, notes, and snippets.

@sshnaidm
Created June 15, 2016 11:47
Show Gist options
  • Save sshnaidm/de0193be9366fa99de3a9d0fb90d9111 to your computer and use it in GitHub Desktop.
Save sshnaidm/de0193be9366fa99de3a9d0fb90d9111 to your computer and use it in GitHub Desktop.
Bulk install Jenkins plugins
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