aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/jenkins/vagrant/jenkins-init-1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/jenkins/vagrant/jenkins-init-1.sh')
-rwxr-xr-xbootstrap/jenkins/vagrant/jenkins-init-1.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/bootstrap/jenkins/vagrant/jenkins-init-1.sh b/bootstrap/jenkins/vagrant/jenkins-init-1.sh
new file mode 100755
index 000000000..a5599a7e8
--- /dev/null
+++ b/bootstrap/jenkins/vagrant/jenkins-init-1.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+git config --global user.email "jenkins@localhost"
+git config --global user.name "jenkins"
+
+cd ~/jenkins
+
+cp /etc/skel/.profile .
+cat > .bashrc <<EOF
+alias ls='ls --color -F'
+EOF
+
+git init
+
+git add -A
+git commit -m 'Initial installation config'
+
+mkdir -p ~/.m2
+cp /vagrant/settings.xml ~/.m2
+rm -f secrets/initialAdminPassword
+rm -rf users/admin
+rsync -avP /vagrant/jenkins/ .
+
+git add -A
+git commit -m 'Set up jenkins user'
+