[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: only send mail about problems if problems were found

Holger Levsen holger at layer-acht.org
Sat Jan 21 11:14:47 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 27bd26bb9781bba483726849b8ef808ea6d8f974
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jan 21 12:14:40 2017 +0100

    reproducible Debian: only send mail about problems if problems were found
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_maintenance.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index d747fa5..64427dd 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -473,7 +473,8 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ]  ; then
 				# only care for yesterday's entries:
 				( grep $(date -u -d "1 day ago" '+%Y-%m-%d') $PROBLEM || echo "no problems yesterday…" ) > $TMPFILE
 			fi
-			if [ -s $TMPFILE ] ; then
+			# send mail if we found issues
+			if [ -s $TMPFILE ] && ! grep -q "no problems yesterday…" $TMPFILE ; then
 				cat $TMPFILE | mail -s "$(basename $PROBLEM) found" qa-jenkins-scm at lists.alioth.debian.org
 			fi
 			rm -f $TMPFILE

-- 
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