Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Gary Wu | 3824c75 | 2017-06-22 12:40:23 -0700 | [diff] [blame] | 3 | cd ~jenkins |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 4 | git add -A |
Gary Wu | b2076ff | 2017-06-22 13:29:06 -0700 | [diff] [blame^] | 5 | git commit -m 'Installed plugins, restarted Jenkins' > /dev/null |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 6 | |
| 7 | |
| 8 | mkdir -p ~/.config/jenkins_jobs |
| 9 | cp /vagrant/jenkins_jobs.ini ~/.config/jenkins_jobs |
| 10 | |
| 11 | pip install --user jenkins-job-builder |
| 12 | |
| 13 | jenkins-job-builder update -r /vagrant/jjb |
| 14 | |
| 15 | cat > .gitignore <<EOF |
| 16 | jobs/*/builds |
| 17 | jobs/*/last* |
| 18 | workspace/ |
| 19 | .m2/repository/ |
| 20 | logs/ |
| 21 | EOF |
| 22 | |
| 23 | git add -A |
Gary Wu | b2076ff | 2017-06-22 13:29:06 -0700 | [diff] [blame^] | 24 | git commit -m 'Set up initial jobs' > /dev/null |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 25 | |