diff options
-rwxr-xr-x | scripts/auto-build/mail-mingw-log-hack.sh | 2 | ||||
-rwxr-xr-x | scripts/auto-build/run-automated-builder | 2 |
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 } |