blob: eb0efe6b99f9ad3f300239c712e9b90c622d00e1 [file] [log] [blame]
Gary Wu213a8352017-06-16 13:44:28 -07001#!/bin/bash
2
3cd ~jenkins
4ln -s /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar
5
6# Get the update center ourself
7curl -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
9java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin git
10java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin ws-cleanup
11java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins install-plugin envinject
12
13git add -A
14git commit -m 'Install initial plugins'
15