[buildbot-][r7] use mpack to send mail

9 views
Skip to first unread message

h...@geexbox.org

unread,
Mar 13, 2013, 3:37:02 PM3/13/13
to com...@geexbox.org
changeset 23d7875060c1 in /var/www/hg/buildbot
author: Thomas Genty <toml...@openbricks.org>
details: http://hg.geexbox.org/buildbot?cmd=changeset;node=23d7875060c1
description:
use mpack to send mail
diffstat:

buildbot.sh | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r 38b116d50cc6 -r 23d7875060c1 buildbot.sh
--- a/buildbot.sh Wed Mar 13 19:41:25 2013 +0100
+++ b/buildbot.sh Wed Mar 13 19:50:07 2013 +0100
@@ -25,22 +25,23 @@

mailfail()
{
- mail -s "[buildbot] $NAME failed to build" de...@openbricks.org <<EOF
+
+cat > /tmp/mesg.txt <<EOF
Hi,

I was trying to build '$NAME', but something went wrong. The build
failed at '$1' stage, here's the last log messages:
----------
-`tail -50 $BUILDLOG`
+`tail -75 $BUILDLOG`
----------

I was building from the $REPONAME repository at $REV revision on $DATE.
-You can find the full log at
-buildbot:${BUILDLOG}
-If you don't know how to access buildbot, email davide for an account.
+You can find the full log attached.

buildbot
EOF
+
+mpack -s "[buildbot] $NAME failed to build" -d /tmp/mesg.txt $BUILDLOG.bz2 de...@openbricks.org
}

sendsnapshot ()
@@ -185,13 +186,15 @@
sendsnapshot
# send snapshot, don't wait
make quickclean
+ log "Archiving $NAME log"
+ lbzip2 -9 $BUILDLOG
else
+ log "Archiving $NAME log"
+ lbzip2 -9 $BUILDLOG
log "$NAME build failed"
mailfail build
rm -f "$STAMPS/$REPONAME/$NAME"
fi
- log "Archiving $NAME log"
- lbzip2 -9 $BUILDLOG
done

rm -f $STAMPS/lock
Reply all
Reply to author
Forward
0 new messages