[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible: break loop once update was successful

Holger Levsen holger at moszumanska.debian.org
Mon Sep 14 15:32:39 UTC 2015


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 e911f822cb60d46719bccd5918760c1f8a2aa93a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Sep 14 13:23:00 2015 +0200

    reproducible: break loop once update was successful
---
 bin/reproducible_maintenance.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index f687d62..e917dd3 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -65,7 +65,7 @@ for s in $SUITES ; do
 			/bin/sleep $(echo "scale=1 ; ($(shuf -i 1-600 -n 1)/10)+60" | bc )
 			echo "$(date -u) - Retrying to update the $s/$ARCH schroot."
 		elif [ $RESULT -eq 0 ] ; then
-			continue
+			break
 		fi
 	done
 	if [ $RESULT -eq 1 ] ; then
@@ -89,7 +89,7 @@ for s in $SUITES ; do
 			/bin/sleep $(echo "scale=1 ; ($(shuf -i 1-600 -n 1)/10)+60" | bc )
 			echo "$(date -u) - Retrying to update pbuilder for $s/$ARCH."
 		elif [ $RESULT -eq 0 ] ; then
-			continue
+			break
 		fi
 	done
 	if [ $RESULT -eq 1 ] ; then

-- 
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