[Qa-jenkins-scm] [jenkins.debian.net] 03/06: reproducible: common, maintenance: also pass $REASON to the rescheduling script via --message
Holger Levsen
holger at moszumanska.debian.org
Sun Jun 14 20:37:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 98cbb7d97f540dfe073ed235e96123903c31369f
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Sun Jun 14 19:38:09 2015 +0200
reproducible: common,maintenance: also pass $REASON to the rescheduling script via --message
---
bin/reproducible_common.sh | 8 +++++++-
bin/reproducible_maintenance.sh | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 1a4b81a..681c90b 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 3e4feec..40d6d31 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list