From c2bf0092b165f600d8a14f234c3270e29acafd71 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 23 Mar 2009 20:51:08 +0000 Subject: - added direct mailing support for Cygwin 'email' via Windows/MinGW builds - added network debug info - made source rsync function and reverted Cygwin rsync to be the same as the UNIX ones. This means that it doesn't try to copy symlinks anymore. svn path=/trunk/; revision=10892 --- scripts/auto-build/run-automated-builder | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/auto-build/run-automated-builder') diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder index 69eba376..6fb22dd0 100755 --- a/scripts/auto-build/run-automated-builder +++ b/scripts/auto-build/run-automated-builder @@ -23,8 +23,10 @@ SCRIPT=$(echo $0| sed 's|.*/\(.*\)|\1|g') mailbody_on_failure () { ## this is a somewhat simplistic expression to detect error-lines + echo "last 20 errors ----------------------------------------" cat ${LOGFILE} | grep -i "error: " | tail -20 -# tail -20 ${LOGFILE} + echo "last 5 lines ----------------------------------------" + tail -5 ${LOGFILE} echo "" echo "the full logfile - if it has been succesfully uploaded - can be viewed at:" echo "http://autobuild.puredata.info/auto-build/${DATE}/logs/${LOGFILE##*/}" @@ -61,8 +63,7 @@ run_build_script () if [ "x${completion_test}" != "xSUCCESS" ]; then if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" - mailbody_on_failure | mail -s "${SUBJECT}" ${RECIPIENT} - #tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT} + mailbody_on_failure | $MAIL_COMMAND -s "${SUBJECT}" ${RECIPIENT} fi fi } -- cgit v1.2.1