From 860f29ff449b15a082407c80075e51be1e86c1a7 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 13 Jun 2015 18:06:55 +0200 Subject: reproducible: reduce code duplication by teaching sh's schedule_packages() to call reproducible_schedule_on_demand.py and fix various scripts --- bin/reproducible_maintenance.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/reproducible_maintenance.sh') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 49817707..3e4feec5 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -77,13 +77,9 @@ if [ ! -z "$FAILED_BUILDS" ] ; then echo echo "Rescheduling packages: " for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f8 | sort -u) ; do + REQUESTER="jenkins maintenance job" CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo -n "$PKG " ; done) - check_candidates - if [ $TOTAL -ne 0 ] ; then - echo " - in $SUITE: $CANDIDATES" - ARTIFACTS=0 - schedule_packages $PACKAGE_IDS - fi + schedule_packages $SUITE $CANDIDATES done DIRTY=true fi -- cgit v1.2.3-54-g00ecf