[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible debian: maintenance: turn on rescheduling packages where diffoscope failed due to schroot problems

Holger Levsen holger at layer-acht.org
Thu Jun 2 08:16:53 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 580d616d7ee9c1aa820d02f73a94c2abaa9cf24e
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Thu Jun 2 08:00:23 2016 +0000

    reproducible debian: maintenance: turn on rescheduling packages where diffoscope failed due to schroot problems
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_maintenance.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index a4a1b48..cef2411 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -208,15 +208,16 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 		echo
 		echo "Warning: The following builds have failed due to diffoscope schroot problems and will be rescheduled now:"
 		echo "$FAILED_BUILDS"
-		echo "Actually not doing so yet… please investigate manually."
 		echo
 		echo "Rescheduling packages: "
 		REQUESTER="jenkins maintenance job"
 		REASON="maintenance reschedule: reschedule builds which failed due to diffoscope schroot errors"
 		for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f8 | sort -u) ; do
 			for ARCH in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f9 | sort -u) ; do
-				CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/$ARCH/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo "$PKG" ; done)
-				echo "_would_ schedule_packages $CANDIDATES"
+				CANDIDATES=$(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/$ARCH/" | cut -d "/" -f10 | cut -d "_" -f1 | xargs)
+				if [ ! -z "$CANDIDATES" ]; then
+					schedule_package $CANDIDATES
+				fi
 			done
 		done
 		DIRTY=true

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