From 2d46741840f4afee2723b37ce286e0fc032de9ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Nov 2014 14:52:42 +0100 Subject: [PATCH] Fix message --- src/lib/Hydra/Plugin/EmailNotification.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index dbe4772f..4dcc62b1 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -25,7 +25,7 @@ The following dependent jobs also failed: [% END -%] [% END -%] -[% IF nrCommits > 0 -%] +[% IF nrCommits > 0 && authorList -%] This is likely due to [% IF nrCommits > 1 -%][% nrCommits %] commits by [% END -%][% authorList %]. [% END -%] @@ -85,8 +85,6 @@ sub buildFinished { } # Send an email to each interested address. - # !!! should use the Template Toolkit here. - for my $to (keys %addresses) { print STDERR "sending mail notification to ", $to, "\n"; my @builds = @{$addresses{$to}->{builds}};