Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | cd ~jenkins |
| 4 | ln -s /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar |
| 5 | |
| 6 | # Get the update center ourself |
| 7 | curl -L http://updates.jenkins-ci.org/update-center.json | sed '1d;$d' | curl -X POST -H 'Accept: application/json' -d @- http://localhost:8080/updateCenter/byId/default/postBack |
| 8 | |
| 9 | java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin git |
| 10 | java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin ws-cleanup |
| 11 | java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin envinject |
| 12 | |
| 13 | git add -A |
| 14 | git commit -m 'Install initial plugins' |
| 15 | |