From b18b4b4f3ae0a70b8800d77fc0130a05ef337bdc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 16 Sep 2015 09:45:41 +0200 Subject: reproducible: check if a node is up, else sleep 23m and abort the build job --- bin/reproducible_build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') 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...) -- cgit v1.2.3-54-g00ecf