diff options
author | Mattia Rizzolo <mattia@debian.org> | 2016-08-03 14:01:12 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-03 16:11:55 +0200 |
commit | bcdee0924dfd6bd083e68e8208911bd252b86cf4 (patch) | |
tree | fe15c2cb4ac8f6a789963215a038ac280750debf | |
parent | 11c2d66c8e2232ae688f978473ebf251de3385c3 (diff) | |
download | jenkins.debian.net-bcdee0924dfd6bd083e68e8208911bd252b86cf4.tar.xz |
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@layer-acht.org>
-rwxr-xr-x | deploy_everywhere | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/deploy_everywhere b/deploy_everywhere index 10084988..4030cd86 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 odxu4-armhf-rb.debian.net wbd0-armhf-rb.debian.net rpi2b-armhf-rb.debian.net rpi2c-armhf-rb.debian.net root@jenkins.debian.net odxu4b-armhf-rb.debian.net odxu4c-armhf-rb.debian.net ff2a-armhf-rb.debian.net ff2b-armhf-rb.debian.net ff4a-armhf-rb.debian.net opi2a-armhf-rb.debian.net opi2b-armhf-rb.debian.net odu3a-armhf-rb.debian.net cb3a-armhf-rb.debian.net opi2c-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" |