diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-03-12 13:28:25 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-12 13:28:25 +0100 |
commit | 78cdc04086c894992d9ca4750336fc11c71dc2e0 (patch) | |
tree | abb35cb41784733a639b122fd977d23c36fbc21f /bin | |
parent | bd15f8e923e22f2d5bed7470d80d700a93a43942 (diff) | |
download | jenkins.debian.net-78cdc04086c894992d9ca4750336fc11c71dc2e0.tar.xz |
reproducible: reschedule failed builds in correct suites
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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 |