diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-01-12 16:02:00 -0800 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-01-12 16:02:00 -0800 |
commit | af6972d660d074f2971636c3b7384b7a75928fe7 (patch) | |
tree | dde2d5342e75da05d143cef1cc7870af29629210 /lib/jitterbug/Emailer.pm | |
parent | Allow specification of a perl module to handle build failure emails (diff) | |
download | jitterbug-af6972d660d074f2971636c3b7384b7a75928fe7.tar.gz |
Allow a header and footer for failure emails to be specified
Diffstat (limited to 'lib/jitterbug/Emailer.pm')
-rw-r--r-- | lib/jitterbug/Emailer.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/jitterbug/Emailer.pm b/lib/jitterbug/Emailer.pm index 4bf2e51..2af7590 100644 --- a/lib/jitterbug/Emailer.pm +++ b/lib/jitterbug/Emailer.pm @@ -25,9 +25,15 @@ sub run { my $sha1 = $task->commit->sha256; my $desc = JSON::decode_json( $task->commit->content ); my $email = $desc->{'author'}{'email'}; + my $header = $buildconf->{'on_failure_header'}; + my $footer = $buildconf->{'on_failure_footer'}; my $body = <<BODY; +$header + $tap_output + +$footer BODY my $stuff = Email::Stuff->from($buildconf->{'on_failure_from_email'}) |