diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-04 00:44:34 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-04 00:44:34 +0200 |
commit | ec47adff5b4b4900868f8337a5a2041bb7bf7796 (patch) | |
tree | ad24fa25b1a6c9d3d5d73beed8413e860c2872d5 /bin | |
parent | ea24e8388a9d74a6a9635f57ad87ded52b4c4265 (diff) | |
download | jenkins.debian.net-ec47adff5b4b4900868f8337a5a2041bb7bf7796.tar.xz |
fail loudly if remote node is not accessable
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/jenkins_master_wrapper.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh index 9301275f..71f9b432 100755 --- a/bin/jenkins_master_wrapper.sh +++ b/bin/jenkins_master_wrapper.sh @@ -55,9 +55,15 @@ ssh -o "BatchMode = yes" -p $PORT $NODE_NAME /bin/true RESULT=$? # abort job if host is down if [ $RESULT -ne 0 ] ; then - echo "$(date -u) - $NODE_NAME seems to be down, sleeping 15min before aborting this job." + # + # this should abort (=no success, but also no status change mails…) but as + # this somehow doesnt work anymore, rather error out to see the breakage… + # + #echo "$(date -u) - $NODE_NAME seems to be down, sleeping 15min before aborting this job." + echo "$(date -u) - $NODE_NAME seems to be down, exiting with error." sleep 15m - exec /srv/jenkins/bin/abort.sh + exit 1 + #exec /srv/jenkins/bin/abort.sh fi set -e # |