diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-12 08:33:33 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-12 08:33:33 +0200 |
commit | c64d04b3793124d876473b9a35d8673dcd50d61d (patch) | |
tree | 5b6960a1de47f1b75f853064539d40a6902b2ff3 /bin | |
parent | a59fdfe08db1fff23361d943556280c30b5c4d9e (diff) | |
download | jenkins.debian.net-c64d04b3793124d876473b9a35d8673dcd50d61d.tar.xz |
reproducible: disable mail+irc notifications for testing
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 4df70dec..c72c0f79 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -96,9 +96,10 @@ update_db_and_html() { VERSION="None" fi local OLD_STATUS=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT status FROM results WHERE package_id='${SRCPKGID}'") - # notification for changing status - if [ "${OLD_STATUS}" = "reproducible" ] && [ "$STATUS" != "depwait" ] ; then - if [ "$STATUS" = "unreproducible" ] || ( [ "$STATUS" = "FTBFS" ] && [ "$SUITE" = "testing" ] ) ; then + # irc+mail notifications for changing status in unstable and experimental + if [ "$SUITE" != "testing" ] ; then + if [ "${OLD_STATUS}" = "reproducible" ] && [ "$STATUS" != "depwait" ] && \ + ( [ "$STATUS" = "unreproducible" ] || [ "$STATUS" = "FTBFS" ] ) ; then MESSAGE="${REPRODUCIBLE_URL}/${SUITE}/${ARCH}/${SRCPACKAGE} : reproducible ➤ ${STATUS}" echo "\n$MESSAGE" | tee -a ${RBUILDLOG} irc_message "$MESSAGE" @@ -107,14 +108,13 @@ update_db_and_html() { NOTIFY="" fi fi - fi - if [ "$SUITE" != "testing" ] && \ - [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ] && \ - [ "$OLD_STATUS" != "depwait" ] && [ "$STATUS" != "depwait" ] && \ - [ "$OLD_STATUS" != "404" ] && [ "$STATUS" != "404" ]; then - # spool notifications and mail them once a day - mkdir -p /srv/reproducible-results/notification-emails - echo "$(date -u +'%Y-%m-%d %H:%M') $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE changed from $OLD_STATUS -> $STATUS" >> /srv/reproducible-results/notification-emails/$SRCPACKAGE + if [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ] && \ + [ "$OLD_STATUS" != "depwait" ] && [ "$STATUS" != "depwait" ] && \ + [ "$OLD_STATUS" != "404" ] && [ "$STATUS" != "404" ]; then + # spool notifications and mail them once a day + mkdir -p /srv/reproducible-results/notification-emails + echo "$(date -u +'%Y-%m-%d %H:%M') $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE changed from $OLD_STATUS -> $STATUS" >> /srv/reproducible-results/notification-emails/$SRCPACKAGE + fi fi sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO results (package_id, version, status, build_date, build_duration, builder) VALUES ('$SRCPKGID', '$VERSION', '$STATUS', '$DATE', '$DURATION', '$BUILDER')" if [ ! -z "$DURATION" ] ; then # this happens when not 404 and not_for_us |