diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-01-27 02:26:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-01-27 02:26:46 +0100 |
commit | 152b7fa9a44b2f624de8663738e76c808f4fb229 (patch) | |
tree | 390fa3b976d54d1e35a2477574651a0da7019bdc /bin | |
parent | d25f16af18c27ff1c1838ea2ebe700339a07a1b5 (diff) | |
download | jenkins.debian.net-152b7fa9a44b2f624de8663738e76c808f4fb229.tar.xz |
reproducible debian: sleep 15m if the 1st node is down, but 1h if the 2nd node is down…
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index b1455640..92e1c89c 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -628,7 +628,9 @@ remote_build() { RESULT=$? # abort job if host is down if [ $RESULT -ne 0 ] ; then - SLEEPTIME=$(echo "$BUILDNR*$BUILDNR*5"|bc) + # sleep 15min if this happens on the first node + # but 1h if this happens on the 2nd node + SLEEPTIME=$(echo "$BUILDNR*$BUILDNR*15"|bc) echo "$(date -u) - $NODE seems to be down, sleeping ${SLEEPTIME}min before aborting this job." unregister_build sleep ${SLEEPTIME}m |