diff options
-rwxr-xr-x | bin/reproducible_maintainance.sh | 9 |
1 files 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 |