Emable overriding the email template.

The HYDRA_EMAIL_TEMPLATE env var can be set to any value understood by
https://metacpan.org/module/Template#process-template-vars-output-options
as the $template argument.

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-05 16:29:09 -04:00
parent be3ca0dd84
commit 304f8a5714

View file

@ -14,7 +14,7 @@ use Hydra::Helper::Nix;
use Hydra::Helper::CatalystUtils;
my $template = <<EOF;
my $template = $ENV{'HYDRA_EMAIL_TEMPLATE'} || <<EOF;
Hi,
The status of Hydra job [% showJobName(build) %] [% IF showSystem %](on [% build.system %]) [% END %][% IF prevBuild && build.buildstatus != prevBuild.buildstatus %]has changed from "[% showStatus(prevBuild) %]" to "[% showStatus(build) %]"[% ELSE %]is "[% showStatus(build) %]"[% END %]. For details, see