[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: further simplefy

Holger Levsen holger at layer-acht.org
Thu Jun 1 23:28:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit b7e6068a42b1e1e5149e032d560c7aadc1603918
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Jun 2 01:28:47 2017 +0200

    reproducible Debian: further simplefy
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 init_node | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/init_node b/init_node
index a96cdbb..049c375 100755
--- a/init_node
+++ b/init_node
@@ -31,17 +31,11 @@ sudo adduser --system --shell /bin/bash --home /home/jenkins-adm --ingroup jenki
 sudo usermod -G jenkins jenkins-adm
 sudo mkdir /home/jenkins-adm
 sudo chown jenkins-adm.jenkins-adm /home/jenkins-adm
-
 cd ~jenkins-adm
-if [ ! -d jenkins.debian.net ]; then
-    [ -x /usr/bin/git ] || sudo apt-get install -y git
-    sudo -u jenkins-adm git clone $GIT_REPO
-    cd jenkins.debian.net
-else
-    cd jenkins.debian.net
-
-    sudo -u jenkins-adm git pull $GIT_REPO
-fi
+[ -x /usr/bin/git ] || sudo apt-get install -y git
+sudo -u jenkins-adm git clone $GIT_REPO
+cd jenkins.debian.net
+sudo mkdir -p /var/log/jenkins/
 ./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log
 
 END=$(date +'%s')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list