[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: sleep 15m if the 1st node is down, but 1h if the 2nd node is down…
Holger Levsen
holger at moszumanska.debian.org
Wed Jan 27 01:26:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 152b7fa9a44b2f624de8663738e76c808f4fb229
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Jan 27 02:26:46 2016 +0100
reproducible debian: sleep 15m if the 1st node is down, but 1h if the 2nd node is down…
---
bin/reproducible_build.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index b145564..92e1c89 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list