blob: 104f040c24da7f0076f9e1640d3557b99cce754f [file] [log] [blame]
Gary Wu213a8352017-06-16 13:44:28 -07001#!/bin/bash
2
3git config --global user.email "jenkins@localhost"
4git config --global user.name "jenkins"
5
Gary Wu3824c752017-06-22 12:40:23 -07006cd ~jenkins
Gary Wu213a8352017-06-16 13:44:28 -07007
8cp /etc/skel/.profile .
9cat > .bashrc <<EOF
10alias ls='ls --color -F'
11EOF
12
13git init
14
15git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070016git commit -m 'Initial installation config' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070017
18mkdir -p ~/.m2
19cp /vagrant/settings.xml ~/.m2
20rm -f secrets/initialAdminPassword
21rm -rf users/admin
22rsync -avP /vagrant/jenkins/ .
23
24git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070025git commit -m 'Set up jenkins user' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070026