Revision: 10308 http://pure-data.svn.sourceforge.net/pure-data/?rev=10308&view=rev Author: zmoelnig Date: 2008-09-23 09:38:02 +0000 (Tue, 23 Sep 2008)
Log Message: ----------- add a link to the full logs in the mail-body (sent if the build has failed)
Modified Paths: -------------- trunk/scripts/auto-build/run-automated-builder
Modified: trunk/scripts/auto-build/run-automated-builder =================================================================== --- trunk/scripts/auto-build/run-automated-builder 2008-09-23 09:20:51 UTC (rev 10307) +++ trunk/scripts/auto-build/run-automated-builder 2008-09-23 09:38:02 UTC (rev 10308) @@ -14,10 +14,18 @@ # the name of this script SCRIPT=`echo $0| sed 's|.*/(.*)|\1|g'`
+mailbody_on_failure () { + tail -20 ${LOGFILE} + echo "" + echo "the full logfile can be viewed at" + echo "http://autobuild.puredata.info/auto-build/$%7BDATE%7D/logs/$%7BLOGFILE%7D" +} + run_build_script () { distro=$1
+ ## LATER: make the uploaded ${LOGFILE} (name) be consistent with the uploaded package-file (name) LOGFILE=${HOME}/logs/${DATE}_${TIME}_${SYSTEM}_${HOSTNAME}_${distro}_${SCRIPT}.txt touch ${LOGFILE}
@@ -38,7 +46,8 @@ if [ "x${completion_test}" != "xSUCCESS" ]; then if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" - tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT} + mailbody_on_failure | mail -s "${SUBJECT}" ${RECIPIENT} + #tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT} fi fi }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.