diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-26 13:49:40 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-26 13:49:40 +0200 |
commit | 716cb811c4805f0c60f07a8ae1b3538746c006af (patch) | |
tree | 40170e546da775727902052b65f68e6a7d7342f2 | |
parent | 3c19de57133651ff08168a372319b56585100e44 (diff) | |
download | jenkins.debian.net-716cb811c4805f0c60f07a8ae1b3538746c006af.tar.xz |
reproducible: also send mails about race conditions found
-rwxr-xr-x | bin/reproducible_maintenance.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index c4ec831f..7cc50dd6 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -336,14 +336,16 @@ if [ ! -z "$BADPERMS" ] ; then echo fi -# once a day, send mail about stale builds +# once a day, send mail about builder problems if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then - if [ -s /var/lib/jenkins/stale_builds.txt ] ; then - TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX) - mv /var/lib/jenkins/stale_builds.txt $TMPFILE - cat $TMPFILE | mail -s "stale builds found" qa-jenkins-scm@lists.alioth.debian.org - rm -f $TMPFILE - fi + 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) + mv $PROBLEM $TMPFILE + cat $TMPFILE | mail -s "$(basename $PROBLEM) found" qa-jenkins-scm@lists.alioth.debian.org + rm -f $TMPFILE + fi + done fi if ! $DIRTY ; then |