aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/jenkins/vagrant/jenkins-init-2.sh
blob: eb0efe6b99f9ad3f300239c712e9b90c622d00e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

cd ~jenkins
ln -s /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar

# Get the update center ourself
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

java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin git
java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin ws-cleanup
java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin envinject

git add -A
git commit -m 'Install initial plugins'