summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintenance.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-02-20 17:43:14 +0100
committerHolger Levsen <holger@layer-acht.org>2017-02-20 17:43:14 +0100
commit361771a5e13212c4d3525ded969a4c0444f6e0c0 (patch)
tree5a639586179ae03e1a54aabf268feb1f1401dd60 /bin/reproducible_maintenance.sh
parentc1f24b455b45e4d688e00e8c22a6f927d94c6e66 (diff)
downloadjenkins.debian.net-361771a5e13212c4d3525ded969a4c0444f6e0c0.tar.xz
reproducible Debian: write logfile with buildinfo.debian.net issues and mail it daily to qa-jenkins-scm@l.d.a.o and lamby@d.o
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-xbin/reproducible_maintenance.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 8a4d79e8..bec96f39 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -469,7 +469,7 @@ fi
# daily mails
if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then
# once a day, send mail about builder problems
- for PROBLEM in /var/log/jenkins/reproducible-stale-builds.log /var/log/jenkins/reproducible-race-conditions.log /var/log/jenkins/reproducible-diskspace-issues.log /var/log/jenkins/reproducible-remote-error.log /var/log/jenkins/reproducible-env-changes.log /var/log/postgresql/postgresql-9.4-main.log ; do
+ for PROBLEM in /var/log/jenkins/reproducible-stale-builds.log /var/log/jenkins/reproducible-race-conditions.log /var/log/jenkins/reproducible-diskspace-issues.log /var/log/jenkins/reproducible-remote-error.log /var/log/jenkins/reproducible-env-changes.log /var/log/jenkins/reproducible-submit2buildinfo.debian.net.log /var/log/postgresql/postgresql-9.4-main.log ; do
if [ -s $PROBLEM ] ; then
TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX)
if [ "$(dirname $PROBLEM)" = "/var/log/jenkins" ] ; then
@@ -506,7 +506,11 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then
fi
# 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@lists.alioth.debian.org
+ local CC=""
+ if [ "$(basename $PROBLEM)" = "reproducible-submit2buildinfo.debian.net.log" ]; then
+ CC="-c lamby@debian.org"
+ fi
+ cat $TMPFILE | mail -s "$(basename $PROBLEM) found" $CC qa-jenkins-scm@lists.alioth.debian.org
fi
rm -f $TMPFILE
fi