[Qa-jenkins-scm] [jenkins.debian.net] 01/01: deploy_everywhere: switch back to git:// for cloning/pulling, as https doesn't cope with hosts in the future

Holger Levsen holger at layer-acht.org
Sun Aug 14 11:55:34 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 f9314420e646bf68b5d7154a33a4702d65d8e102
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun Aug 14 11:53:18 2016 +0000

    deploy_everywhere: switch back to git:// for cloning/pulling, as https doesn't cope with hosts in the future
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 deploy_everywhere | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/deploy_everywhere b/deploy_everywhere
index 59ccf59..8e94b2c 100755
--- a/deploy_everywhere
+++ b/deploy_everywhere
@@ -24,11 +24,12 @@
 
 
 START=$(date +'%s')
+GIT_REPO="git://anonscm.debian.org/qa/jenkins.debian.net.git"
 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, for running manually: cd ~jenkins-adm/jenkins.debian.net/ ; sudo -u jenkins-adm git pull ; ./update_jdn.sh
-read -r -d '' real_command <<-'EOF'
+read -r -d '' real_command <<-EOF
 set -e
 export LANG=C
 cd ~jenkins-adm
@@ -36,12 +37,13 @@ if [ ! -d jenkins.debian.net ]; then
     if [ -d ~holger/jenkins.debian.net ] ; then
 	rm ~holger/jenkins.debian.net -rf
     fi
-    [ -x /usr/bin/git ] || sudo apt-get install -y git 
-    sudo -u jenkins-adm git clone https://anonscm.debian.org/git/qa/jenkins.debian.net.git
+    [ -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
+
+    sudo -u jenkins-adm git pull $GIT_REPO
 fi
 ./update_jdn.sh
 EOF

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