Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | git config --global user.email "jenkins@localhost" |
| 4 | git config --global user.name "jenkins" |
| 5 | |
Gary Wu | 3824c75 | 2017-06-22 12:40:23 -0700 | [diff] [blame] | 6 | cd ~jenkins |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 7 | |
| 8 | cp /etc/skel/.profile . |
| 9 | cat > .bashrc <<EOF |
| 10 | alias ls='ls --color -F' |
| 11 | EOF |
| 12 | |
| 13 | git init |
| 14 | |
| 15 | git add -A |
Gary Wu | b2076ff | 2017-06-22 13:29:06 -0700 | [diff] [blame^] | 16 | git commit -m 'Initial installation config' > /dev/null |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 17 | |
| 18 | mkdir -p ~/.m2 |
| 19 | cp /vagrant/settings.xml ~/.m2 |
| 20 | rm -f secrets/initialAdminPassword |
| 21 | rm -rf users/admin |
| 22 | rsync -avP /vagrant/jenkins/ . |
| 23 | |
| 24 | git add -A |
Gary Wu | b2076ff | 2017-06-22 13:29:06 -0700 | [diff] [blame^] | 25 | git commit -m 'Set up jenkins user' > /dev/null |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 26 | |