about summary refs log tree commit diff
path: root/scripts/build-failed.sh
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-01-10 14:08:27 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-01-10 14:08:27 -0800
commit7c19ea7b5e78fd32921ae926802ef80f17c7ca13 (patch)
tree2b2bc2a51d7662dc6e8143d73e0891d2ae52982f /scripts/build-failed.sh
parentAdd debug info for a failed build event (diff)
downloadjitterbug-7c19ea7b5e78fd32921ae926802ef80f17c7ca13.tar.gz
Add the ability to CC an email when builds fail
Diffstat (limited to '')
-rwxr-xr-xscripts/build-failed.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-failed.sh b/scripts/build-failed.sh
index 43463b3..644e35f 100755
--- a/scripts/build-failed.sh
+++ b/scripts/build-failed.sh
@@ -2,10 +2,11 @@ COMMITER=$1
 MESSAGE=$2
 OUTPUT=$3
 SHA=$4
+CC_EMAIL=$5
 
 echo "
 Message:
 $MESSAGE
 
 $OUTPUT
-" | mail -s "[jitterbug] BUILD FAILED $SHA" $COMMITER
+" | mail -c "$CC_EMAIL" -s "[jitterbug] BUILD FAILED $SHA" $COMMITER