blob: 5f32dbb856faf84929cdb721a9be68e409e1be53 [file] [log] [blame]
Gary Wu213a8352017-06-16 13:44:28 -07001#!/bin/bash
2
Gary Wu3824c752017-06-22 12:40:23 -07003cd ~jenkins
Gary Wu213a8352017-06-16 13:44:28 -07004git add -A
Gary Wub2076ff2017-06-22 13:29:06 -07005git commit -m 'Installed plugins, restarted Jenkins' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -07006
7
8mkdir -p ~/.config/jenkins_jobs
9cp /vagrant/jenkins_jobs.ini ~/.config/jenkins_jobs
10
11pip install --user jenkins-job-builder
12
13jenkins-job-builder update -r /vagrant/jjb
14
15cat > .gitignore <<EOF
16jobs/*/builds
17jobs/*/last*
18workspace/
19.m2/repository/
20logs/
21EOF
22
23git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070024git commit -m 'Set up initial jobs' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070025