From 580d616d7ee9c1aa820d02f73a94c2abaa9cf24e Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 2 Jun 2016 08:00:23 +0000 Subject: reproducible debian: maintenance: turn on rescheduling packages where diffoscope failed due to schroot problems Signed-off-by: Holger Levsen --- bin/reproducible_maintenance.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index a4a1b489..cef24114 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 -- cgit v1.2.3-70-g09d2