diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-02 11:40:11 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-02 11:40:11 +0200 |
commit | 2cfab5ad8fdd5856738deed4f6569e2904e2cfee (patch) | |
tree | 73d9b842d8171f3f25b6a483df051689b73f3268 /bin/reproducible_build.sh | |
parent | 662dc8631c26028715b91571a7a7ced2c4d18218 (diff) | |
download | jenkins.debian.net-2cfab5ad8fdd5856738deed4f6569e2904e2cfee.tar.xz |
reproducible: spool notifications to package maintainers and only send them once a day
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 3f01c8a6..07bd0f98 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -114,10 +114,9 @@ update_db_and_html() { [ "$OLD_STATUS" != "$STATUS" ] && [ "$NOTIFY_MAINTAINER" -eq 1 ] && \ [ "$OLD_STATUS" != "depwait" ] && [ "$STATUS" != "depwait" ] && \ [ "$OLD_STATUS" != "404" ] && [ "$STATUS" != "404" ]; then - echo "More information on $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE, feel free to reply to this email to get more help." | \ - mail -s "$SRCPACKAGE changed in $SUITE/$ARCH: $OLD_STATUS -> $STATUS" \ - -a "From: Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>" \ - "$SRCPACKAGE@packages.debian.org" + # 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/$SRCPACKAG 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 |