blob: 3e83fa118192bd282fdfbb47cafbfc82794c7b47 [file] [log] [blame]
Gary Wu39a2f2f2017-11-10 13:38:28 -08001#!/bin/bash -x
Gary Wu5cccfa92017-08-02 12:03:10 -07002#
3# Copyright 2017 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
Gary Wu213a8352017-06-16 13:44:28 -070011
12git config --global user.email "jenkins@localhost"
13git config --global user.name "jenkins"
14
Gary Wu3824c752017-06-22 12:40:23 -070015cd ~jenkins
Gary Wu213a8352017-06-16 13:44:28 -070016
17cp /etc/skel/.profile .
18cat > .bashrc <<EOF
19alias ls='ls --color -F'
20EOF
21
22git init
23
24git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070025git commit -m 'Initial installation config' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070026
27mkdir -p ~/.m2
28cp /vagrant/settings.xml ~/.m2
29rm -f secrets/initialAdminPassword
30rm -rf users/admin
31rsync -avP /vagrant/jenkins/ .
32
33git add -A
Gary Wub2076ff2017-06-22 13:29:06 -070034git commit -m 'Set up jenkins user' > /dev/null
Gary Wu213a8352017-06-16 13:44:28 -070035