-
-
Save ldesiqueira/c02a8b072b3804ae516b19f135896525 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
host=http://localhost:8080 | |
url=/pluginManager/installNecessaryPlugins | |
# git plugin https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin | |
curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url | |
# artifactory plugin https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin | |
curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url | |
# wait 20 sec | |
sleep 20 | |
# jenkins safe restart | |
curl -X POST $host/safeRestart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment