------------------------------------------------------------ revno: 6273 committer: Diego Biurrun <diego@xxxxxxxxxx> branch nick: hipl timestamp: Wed 2012-02-01 16:35:41 +0100 message: autobuild: Extract email address from Bazaar user ID. modified: tools/hipl_autobuild.sh -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'tools/hipl_autobuild.sh' --- tools/hipl_autobuild.sh 2012-01-15 15:36:14 +0000 +++ tools/hipl_autobuild.sh 2012-02-01 15:35:41 +0000 @@ -4,8 +4,8 @@ # # The script is suitable to be run from cron in order to provide basic # continuous integration. Errors encountered during operation are logged -# to a text file and sent off by email. To receive these notifications, -# set the HIPL_NOTIFICATION_EMAIL environment variable to a suitable value. +# to a text file and sent off by email. The email address to send to is +# retrieved from the output of 'bzr whoami'. # # No full checkout of HIPL sources is done. In order to greatly speed up # testing multiple branches, lightweight checkouts are used. The shared @@ -60,6 +60,7 @@ fi BRANCH_NAME=$1 +EMAIL_ADDRESS=$(bzr whoami) AUTOBUILD_DIR=$HOME/tmp/autobuild BUILD_DIR=$AUTOBUILD_DIR/hipl @@ -81,7 +82,7 @@ rm -f log.txt return 0 else - test $HIPL_NOTIFICATION_EMAIL && mail_notify "$1" + mail_notify "$1" cleanup 1 fi } @@ -99,7 +100,7 @@ EOF cat log.txt >> $CHECKOUT_DIR/msg.txt SUBJECT="[autobuild] [$BRANCH_NAME] revision $BRANCH_REVISION" - mailx -s "$SUBJECT" $HIPL_NOTIFICATION_EMAIL < $CHECKOUT_DIR/msg.txt + mailx -s "$SUBJECT" "$EMAIL_ADDRESS" < $CHECKOUT_DIR/msg.txt rm -f log.txt }