summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-06-02 08:00:23 +0000
committerHolger Levsen <holger@layer-acht.org>2016-06-02 10:16:26 +0200
commit580d616d7ee9c1aa820d02f73a94c2abaa9cf24e (patch)
tree252e8256f8e25aebd0f7bdad138de8a055c8c820 /bin
parent3e4247923956e58029dcf9c218776a7c0f701b0a (diff)
downloadjenkins.debian.net-580d616d7ee9c1aa820d02f73a94c2abaa9cf24e.tar.xz
reproducible debian: maintenance: turn on rescheduling packages where diffoscope failed due to schroot problems
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintenance.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index a4a1b489..cef24114 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -208,15 +208,16 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
echo
echo "Warning: The following builds have failed due to diffoscope schroot problems and will be rescheduled now:"
echo "$FAILED_BUILDS"
- echo "Actually not doing so yet… please investigate manually."
echo
echo "Rescheduling packages: "
REQUESTER="jenkins maintenance job"
REASON="maintenance reschedule: reschedule builds which failed due to diffoscope schroot errors"
for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f8 | sort -u) ; do
for ARCH in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f9 | sort -u) ; do
- CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/$ARCH/" | cut -d "/" -f10 | cut -d "_" -f1) ; do echo "$PKG" ; done)
- echo "_would_ schedule_packages $CANDIDATES"
+ CANDIDATES=$(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/$ARCH/" | cut -d "/" -f10 | cut -d "_" -f1 | xargs)
+ if [ ! -z "$CANDIDATES" ]; then
+ schedule_package $CANDIDATES
+ fi
done
done
DIRTY=true