[tbb-commits] [tor-browser-bundle/master] Bug 11249: Sending log of build failure per email.

gk at torproject.org gk at torproject.org
Fri May 30 12:33:08 UTC 2014


commit a6b7b0ddc80e70fee524b88a46ede1910cc8818d
Author: Georg Koppen <gk at torproject.org>
Date:   Mon May 26 13:15:00 2014 +0000

    Bug 11249: Sending log of build failure per email.
---
 tools/continuous-builds/build-tbb.sh |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/continuous-builds/build-tbb.sh b/tools/continuous-builds/build-tbb.sh
index 5f4b4ad..94ae0f0 100755
--- a/tools/continuous-builds/build-tbb.sh
+++ b/tools/continuous-builds/build-tbb.sh
@@ -21,6 +21,7 @@ N=$6; [ -z "$N" ] && N=16
 [ -z "$PGPKEYID" ] && PGPKEYID=0x984496E7
 
 logfile=$(date -u +%s).log
+logrecipients="gk at torproject.org"
 
 . ~/setup-gitian-build-env.sh
 cd $BUILDDIR || exit 1
@@ -49,4 +50,5 @@ if [ $status = done ]; then
   tar cf - $D/sha256sums* $D/*.tar.xz $D/*.zip $D/*.exe $D/*.dmg | ssh -i $PUBLISH_SSH_KEY $PUBLISH_HOST | tee -a $logfile
 else
   echo "$0: giving up after $n tries" | tee -a $logfile
+  tail -n 50 $logfile | mail -s "Nightly build failure -- $(date +%F)" $logrecipients
 fi





More information about the tbb-commits mailing list