diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-11-10 13:38:28 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-11-10 13:56:25 -0800 |
commit | 39a2f2f7910a0d86163ad23fe91c2a11e98ece07 (patch) | |
tree | 4caec39e04afddefc50bb1bfe3f0dc4a270ce883 /bootstrap/jenkins/vagrant/bootstrap.sh | |
parent | 8d99912e879d6deebd0e60763b679aab43b59274 (diff) |
Clean up install of JJB and add instrumentation
Change-Id: I73fcfe0335a7d95beef1570919929e05226adfa6
Issue-ID: INT-146
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'bootstrap/jenkins/vagrant/bootstrap.sh')
-rwxr-xr-x | bootstrap/jenkins/vagrant/bootstrap.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap/jenkins/vagrant/bootstrap.sh b/bootstrap/jenkins/vagrant/bootstrap.sh index fd0caf5c6..25c6a45f6 100755 --- a/bootstrap/jenkins/vagrant/bootstrap.sh +++ b/bootstrap/jenkins/vagrant/bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # # Copyright 2017 Huawei Technologies Co., Ltd. # @@ -39,16 +39,16 @@ apt-get update 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 -apt-get -y install jenkins jenkins-job-builder python-pip +apt-get -y install jenkins +# install docker 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" |