aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/run-automated-builder
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-23 20:51:08 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-23 20:51:08 +0000
commitc2bf0092b165f600d8a14f234c3270e29acafd71 (patch)
treecf7d26044a483fb945f5601b35dec8adfab5c894 /scripts/auto-build/run-automated-builder
parentfc154a3ffca2cbffe03ce02910372c95273d009b (diff)
- 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
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-xscripts/auto-build/run-automated-builder7
1 files changed, 4 insertions, 3 deletions
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
}