summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-27 02:26:46 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-27 02:26:46 +0100
commit152b7fa9a44b2f624de8663738e76c808f4fb229 (patch)
tree390fa3b976d54d1e35a2477574651a0da7019bdc
parentd25f16af18c27ff1c1838ea2ebe700339a07a1b5 (diff)
downloadjenkins.debian.net-152b7fa9a44b2f624de8663738e76c808f4fb229.tar.xz
reproducible debian: sleep 15m if the 1st node is down, but 1h if the 2nd node is down…
-rwxr-xr-xbin/reproducible_build.sh4
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