From e09622eb298fb19aafc3d41c556910592c292ca9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 May 2013 18:30:05 -0400 Subject: [PATCH] Include # of failed builds in Subject --- src/lib/Hydra/Plugin/EmailNotification.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index e8223571..8db67d3c 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -147,7 +147,10 @@ sub buildFinished { header => [ To => $to, From => "Hydra Build Daemon <$sender>", - Subject => showStatus($build) . ": Hydra job " . showJobName($build) . ($vars->{showSystem} ? " on " . $build->system : ""), + Subject => + showStatus($build) . ": Hydra job " . showJobName($build) + . ($vars->{showSystem} ? " on " . $build->system : "") + . (scalar @{$vars->{dependents}} > 0 ? " (and " . scalar @{$vars->{dependents}} . " others)" : ""), 'X-Hydra-Instance' => $vars->{baseurl}, 'X-Hydra-Project' => $build->project->name, 'X-Hydra-Jobset' => $build->jobset->name,