summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-08 09:02:36 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-08 09:02:36 +0200
commitb84393b6a9abdf9799167b50e0cc7d03e2f9606b (patch)
tree2b52941661797248e0b49468285a4a849aeadd94 /bin
parent12b8977846c923eadb22db5b8d734b9a871fc5f5 (diff)
downloadjenkins.debian.net-b84393b6a9abdf9799167b50e0cc7d03e2f9606b.tar.xz
reproducible: keep track of diskspace issues and notify daily per mail
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh2
-rwxr-xr-xbin/reproducible_maintenance.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 3d97e3dd..8b3edf50 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -214,7 +214,7 @@ handle_ftbfs() {
# notify about unkown diskspace issues where we are not 100% sure yet those are diskspace issues
if zgrep -e "No space left on device" "$BASE/logs/$SUITE/$ARCH/${SRCPACKAGE}_${EVERSION}.build${BUILD}.log.gz" ; then
MESSAGE="$BUILD_URL for ${SRCPACKAGE} (ftbfs in $SUITE/$ARCH) _probably_ had a diskspace issue. Please check, tune handle_ftbfs() and reschedule the package."
- echo $MESSAGE
+ echo $MESSAGE | tee -a /var/log/jenkins/reproducible-diskspace-issues.log
irc_message "$MESSAGE"
fi
done
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 0b2d9aae..e4cee248 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -334,7 +334,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/lib/jenkins/stale_builds.txt /var/log/jenkins/reproducible-race-conditions.log ; do
+ for PROBLEM in /var/lib/jenkins/stale_builds.txt /var/log/jenkins/reproducible-race-conditions.log /var/log/jenkins/reproducible-diskspace-issues.log ; do
if [ -s $PROBLEM ] ; then
TMPFILE=$(mktemp --tmpdir=$TEMPDIR maintenance-XXXXXXXXXXXX)
mv $PROBLEM $TMPFILE