summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-14 19:38:09 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-14 22:36:07 +0200
commit98cbb7d97f540dfe073ed235e96123903c31369f (patch)
tree33b7b9a3c86592b585fda4fec23f6139593d0d9d /bin
parent860f29ff449b15a082407c80075e51be1e86c1a7 (diff)
downloadjenkins.debian.net-98cbb7d97f540dfe073ed235e96123903c31369f.tar.xz
reproducible: common,maintenance: also pass $REASON to the rescheduling script via --message
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh8
-rwxr-xr-xbin/reproducible_maintenance.sh1
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 1a4b81af..681c90b4 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -92,7 +92,13 @@ META_PKGSET[26]="maint_debian-boot"
META_PKGSET[27]="maint_debian-ocaml"
schedule_packages() {
- LC_USER="$REQUESTER" LOCAL_CALL="true" /srv/jenkins/bin/reproducible_remote_scheduler.py --no-notify --suite "$UITE" $@
+ LC_USER="$REQUESTER" \
+ LOCAL_CALL="true" \
+ /srv/jenkins/bin/reproducible_remote_scheduler.py \
+ --message "$REASON" \
+ --no-notify \
+ --suite "$UITE" \
+ $@
}
write_page() {
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 3e4feec5..40d6d313 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -78,6 +78,7 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
echo "Rescheduling packages: "
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 $SUITE $CANDIDATES
done