diff options
author | Mattia Rizzolo <mattia@debian.org> | 2017-09-08 10:57:34 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-09-09 14:26:20 +0200 |
commit | 5649bf3534145e4c6adab8482b6bd2959ea08aac (patch) | |
tree | 303f8f00ca333d4b48c73136d455579aa45d6fc7 /bin/reproducible_build.sh | |
parent | 4b9909555c6be1cbcb17c109d94d37ac5e0dbc28 (diff) | |
download | jenkins.debian.net-5649bf3534145e4c6adab8482b6bd2959ea08aac.tar.xz |
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@debian.org>
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 92641635..d9265fc2 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() { |