From 05c71707693cd6bf917c0e60081f6084c6082763 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 16 Mar 2015 13:52:32 +0100 Subject: reproducible: call functions instead of the script, to reduce noise in output --- bin/reproducible_maintainance.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 1fd52287..3552565e 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -96,9 +96,12 @@ if [ ! -z "$FAILED_BUILDS" ] ; then echo echo "Rescheduling packages: " 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 + CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f9 | cut -d "_" -f1) ; do echo -n "$PKG " ; done) + check_candidates + if [ $TOTAL -ne 0 ] ; then + echo " - in $SUITE: $CANDIDATES" + schedule_packages $PACKAGE_IDS + fi done DIRTY=true fi -- cgit v1.2.3-70-g09d2