[Qa-jenkins-scm] [jenkins.debian.net] 01/06: deploy_everywhere: deploy from ~jenkins-adm/jenkins.debian.net, instead of user's $HOME. Also automatically clone anew if missing

Holger Levsen holger at layer-acht.org
Wed Aug 3 14:19:27 UTC 2016


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 bcdee0924dfd6bd083e68e8208911bd252b86cf4
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Aug 3 14:01:12 2016 +0000

    deploy_everywhere: deploy from ~jenkins-adm/jenkins.debian.net, instead of user's $HOME.  Also automatically clone anew if missing
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 deploy_everywhere | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/deploy_everywhere b/deploy_everywhere
index 1008498..4030cd8 100755
--- a/deploy_everywhere
+++ b/deploy_everywhere
@@ -33,7 +33,18 @@ START=$(date +'%s')
 export HOSTS="profitbricks-build1-amd64.debian.net profitbricks-build2-i386.debian.net profitbricks-build3-amd64.debian.net profitbricks-build4-amd64.debian.net profitbricks-build5-amd64.debian.net profitbricks-build6-i386.debian.net profitbricks-build9-amd64.debian.net profitbricks-build10-amd64.debian.net bbx15-armhf-rb.debian.net bpi0-armhf-rb.debian.net hb0-armhf-rb.debian.net wbq0-armhf-rb.debian.net cbxi4pro0-armhf-rb.debian.net cbxi4a-armhf-rb.debian.net cbxi4b-armhf-rb.debian.net [...]
 echo
 echo -n "$(date) - "
-real_command="export LANG=C && cd jenkins.debian.net && git pull && ./update_jdn.sh "
+read -r -d '' real_command <<-'EOF'
+set -e
+export LANG=C
+cd ~jenkins-adm
+if [ ! -d jenkins.debian.net ]; then
+    sudo -u jenkins-adm git clone https://anonscm.debian.org/git/qa/jenkins.debian.net.git
+else
+    cd jenkins.debian.net
+    sudo -u jenkins-adm git pull
+fi
+./update_jdn.sh
+EOF
 reset_clock=true
 if [ -z "$1" ] ; then
 	echo -n "Running j.d.n.git updates on $HOSTS now"

-- 
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