[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible debian: _build.sh: fix IRC notifications when somebody asks for artifacts
Holger Levsen
holger at layer-acht.org
Sat Sep 9 12:26:42 UTC 2017
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 5649bf3534145e4c6adab8482b6bd2959ea08aac
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Sep 8 10:57:34 2017 +0200
reproducible debian: _build.sh: fix IRC notifications when somebody asks for artifacts
this code was disabled one year ago when we didn't have #d-r-changes,
now that we have it let's send error notifications to #d-r-changes, and
notifications explicitly asked to #d-r
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build.sh | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9264163..d9265fc 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -86,13 +86,16 @@ save_artifacts() {
echo "</p>" >> $HEADER
chmod 644 $HEADER
# irc message
- #if [ ! -z "$NOTIFY" ] ; then
- # local MESSAGE="Artifacts for ${SRCPACKAGE}, $STATUS in ${SUITE}/${ARCH}: $URL"
- # if [ "$NOTIFY" = "diffoscope" ] ; then
- # MESSAGE="$MESSAGE (error running $DIFFOSCOPE)"
- # fi
- # irc_message debian-reproducible "$MESSAGE"
- #fi
+ if [ ! -z "$NOTIFY" ] ; then
+ local MESSAGE="Artifacts for ${SRCPACKAGE}, $STATUS in ${SUITE}/${ARCH}: $URL"
+ if [ "$NOTIFY" = "diffoscope" ] ; then
+ irc_message debian-reproducible-changes "$MESSAGE (error running $DIFFOSCOPE)"
+ MESSAGE="$MESSAGE (error running $DIFFOSCOPE)"
+ else
+ # somebody explicitly asked for artifacts, so give them the artifacts
+ irc_message debian-reproducible "$MESSAGE"
+ fi
+ fi
}
cleanup_all() {
--
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