From 78cdc04086c894992d9ca4750336fc11c71dc2e0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 12 Mar 2015 13:28:25 +0100 Subject: reproducible: reschedule failed builds in correct suites --- bin/reproducible_maintainance.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_maintainance.sh') diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 65325359..397b13a9 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -95,9 +95,11 @@ if [ ! -z "$FAILED_BUILDS" ] ; then echo "$FAILED_BUILDS" echo echo "Rescheduling packages: " - # FIXME the suite got hardcoded here, a way to recognize the original suite must be found - ( for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f9 | cut -d "_" -f1) ; do echo $PKG ; done ) | xargs /srv/jenkins/bin/reproducible_schedule_on_demand.sh sid - echo + for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f7 | sort -u) ; do + ( for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f9 | cut -d "_" -f1) ; do + echo $PKG + done ) | xargs /srv/jenkins/bin/reproducible_schedule_on_demand.sh $SUITE + done DIRTY=true fi -- cgit v1.2.3-54-g00ecf