diff options
-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" |