summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-08-01 09:19:05 +0000
committerHolger Levsen <holger@layer-acht.org>2015-08-01 11:48:47 +0200
commiteac2164ac72ed531c5acc2be47f7b2ab576103b0 (patch)
tree2f0ef455abc5c8ab37695be8df3bdbf5d5fe65c8 /bin
parentfd2bf36bb69c55aea5c9a3cdafe72db70b74cf32 (diff)
downloadjenkins.debian.net-eac2164ac72ed531c5acc2be47f7b2ab576103b0.tar.xz
reproducible: maintenance: do not auto-reschedule packages which actually succeeded
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintenance.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index bc6ccb14..3bb003a4 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -79,8 +79,13 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f8 | sort -u) ; do
REQUESTER="jenkins maintenance job"
REASON="maintenance reschedule: reschedule builds which failed due to network errors"
- CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo -n "$PKG " ; done)
- schedule_packages $CANDIDATES
+ CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo "$PKG" ; done)
+ # double check those builds actually failed
+ for pkg in $CANDIDATES ; do
+ QUERY="SELECT s.name FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE s.suite='$SUITE' AND r.status='FTBFS' AND s.name='$pkg'"
+ TO_SCHEDULE=${TO_SCHEDULE:+"$TO_SCHEDULE "}$(sqlite3 $INIT $PACKAGES_DB "$QUERY")
+ done
+ schedule_packages $TO_SCHEDULE
done
DIRTY=true
fi