diff options
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 7cc50dd6..4518415d 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -336,8 +336,9 @@ if [ ! -z "$BADPERMS" ] ; then echo fi -# once a day, send mail about builder problems +# daily mails if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then + # once a day, send mail about builder problems for PROBLEM in /var/lib/jenkins/stale_builds.txt /var/log/jenkins/reproducible-race-conditions.log ; do if [ -s $PROBLEM ] ; then TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX) @@ -346,6 +347,16 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then rm -f $TMPFILE fi done + # once a day, send notifications to package maintainers + cd /srv/reproducible-results/notification-emails + for NOTE in $(find . -type f) ; do + TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX) + mv $NOTE $TMPFILE + cat $TMPFILE | mail -s "reproducible.debian.net status changes for $NOTE" \ + -a "From: Reproducible builds folks <reproducible-builds@lists.alioth.debian.org>" \ + $NOTE@packages.debian.org + rm -f $TMPFILE + done fi if ! $DIRTY ; then |