Change-Id: I73fcfe0335a7d95beef1570919929e05226adfa6
Issue-ID: INT-146
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
#
# # Customize the amount of memory on the VM:
vb.memory = "8192"
#
# # Customize the amount of memory on the VM:
vb.memory = "8192"
+ vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
#
# View the documentation for the provider you are using for more
end
#
# View the documentation for the provider you are using for more
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
apt-get -y install git
git config --global user.email "jenkins@localhost"
git config --global user.name "jenkins"
apt-get -y install git
git config --global user.email "jenkins@localhost"
git config --global user.name "jenkins"
-apt-get -y install curl openjdk-8-jdk maven unzip
+apt-get -y install curl openjdk-8-jdk-headless maven unzip python-pip
# install Jenkins
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
# install Jenkins
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
-apt-get -y install jenkins jenkins-job-builder python-pip
+apt-get -y install jenkins
apt-get -y install docker.io
apt-get -y install docker.io
-sudo usermod -aG docker ubuntu
sudo usermod -aG docker jenkins
su -l jenkins -c "/vagrant/jenkins-init-1.sh"
sudo usermod -aG docker jenkins
su -l jenkins -c "/vagrant/jenkins-init-1.sh"
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
#
# Copyright 2017 Huawei Technologies Co., Ltd.
#
mkdir -p ~/.config/jenkins_jobs
cp /vagrant/jenkins_jobs.ini ~/.config/jenkins_jobs
mkdir -p ~/.config/jenkins_jobs
cp /vagrant/jenkins_jobs.ini ~/.config/jenkins_jobs
-pip install --user jenkins-job-builder
+pip -v install --user jenkins-job-builder
+pip list
-jenkins-job-builder update -r /vagrant/jjb
+jenkins-jobs update -r /vagrant/jjb
cat > .gitignore <<EOF
jobs/*/builds
cat > .gitignore <<EOF
jobs/*/builds