[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: write logfile with buildinfo.debian.net issues and mail it daily to qa-jenkins-scm at l.d.a.o and lamby at d.o
Holger Levsen
holger at layer-acht.org
Mon Feb 20 16:43:21 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 361771a5e13212c4d3525ded969a4c0444f6e0c0
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Feb 20 17:43:14 2017 +0100
reproducible Debian: write logfile with buildinfo.debian.net issues and mail it daily to qa-jenkins-scm at l.d.a.o and lamby at d.o
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_build.sh | 3 ++-
bin/reproducible_maintenance.sh | 8 ++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 7cbb413..2007347 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -854,7 +854,8 @@ share_buildinfo() {
curl -s -X PUT --max-time 30 --data-binary @- "https://buildinfo.debian.net/api/submit" < ./${X}/$BUILDINFO_SIGNED > $TMPFILE || log_error "Could not submit buildinfo from ${X} to http://buildinfo.debian.net/api/submit"
cat $TMPFILE
if grep -q "500 Internal Server Error" $TMPFILE ; then
- echo no irc_message debian-reproducible "${BUILD_URL} got error code 500 from buildinfo.debian.net"
+ MESSAGE="$(date -u ) - ${BUILD_URL}console got error code 500 from buildinfo.debian.net"
+ echo -e "$MESSAGE" | tee -a /var/log/jenkins/reproducible-submit2buildinfo.debian.net.log
fi
rm $TMPFILE
done
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 8a4d79e..bec96f3 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 at lists.alioth.debian.org
+ local CC=""
+ if [ "$(basename $PROBLEM)" = "reproducible-submit2buildinfo.debian.net.log" ]; then
+ CC="-c lamby at debian.org"
+ fi
+ cat $TMPFILE | mail -s "$(basename $PROBLEM) found" $CC qa-jenkins-scm at lists.alioth.debian.org
fi
rm -f $TMPFILE
fi
--
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