aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-27 20:49:22 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2007-11-27 20:49:22 +0000
commite2c43c853670a7df90067ea07847aac78a13f17b (patch)
tree55f9091e47f6a8a3ffee74080928202a4e1d7416
parent4263f7222a82f2722f99f51bf996ac52f79dffdd (diff)
only send emails if RECIPIENT is defined
svn path=/trunk/; revision=9056
-rwxr-xr-xscripts/auto-build/mail-mingw-log-hack.sh2
-rwxr-xr-xscripts/auto-build/run-automated-builder2
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/auto-build/mail-mingw-log-hack.sh b/scripts/auto-build/mail-mingw-log-hack.sh
index c0cf45b3..3e39cf71 100755
--- a/scripts/auto-build/mail-mingw-log-hack.sh
+++ b/scripts/auto-build/mail-mingw-log-hack.sh
@@ -11,7 +11,9 @@ SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
for logfile in `ls -1 /var/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt`; do
completion_test=`tail -1 ${logfile}`
if [ "x${completion_test}" != "xSUCCESS" ]; then
+ if [ "x${RECIPIENT}" != "x" ]; then
SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
tail -20 ${logfile} | mail -s "autobuild: $logfile" ${RECIPIENT}
+ fi
fi
done
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder
index 64edb375..3f66a1ea 100755
--- a/scripts/auto-build/run-automated-builder
+++ b/scripts/auto-build/run-automated-builder
@@ -36,8 +36,10 @@ run_build_script ()
# send status report if something failed
completion_test=`tail -1 ${LOGFILE}`
if [ "x${completion_test}" != "xSUCCESS" ]; then
+ if [ "x${RECIPIENT}" != "x" ]; then
SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT}
+ fi
fi
}