diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-16 09:45:41 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-16 09:47:13 +0200 |
commit | b18b4b4f3ae0a70b8800d77fc0130a05ef337bdc (patch) | |
tree | 698d91155d4c99dbc37106ce7600ae8187099a90 /bin | |
parent | 79d2ce7dc1dd3fa4bdf2c5cba388166dd2bb5592 (diff) | |
download | jenkins.debian.net-b18b4b4f3ae0a70b8800d77fc0130a05ef337bdc.tar.xz |
reproducible: check if a node is up, else sleep 23m and abort the build job
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index d89b8f29..cb8fd6f7 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -535,6 +535,14 @@ remote_build() { local NODE=$2 local PORT=$3 set +e + ssh -p $PORT $NODE /bin/true + RESULT=$? + # abort job if host is down + if [ $RESULT -ne 0 ] then + echo "$(date -u) - $NODE seems to be down, sleeping 23min before aborting this job." + sleep 23m + /srv/jenkins/bin/abort.sh + fi ssh -p $PORT $NODE /srv/jenkins/bin/reproducible_build.sh $BUILDNR ${SRCPACKAGE} ${SUITE} ${TMPDIR} RESULT=$? # 404-256=148... (ssh 'really' only 'supports' exit codes below 255...) |