From 804617f0752d5aadd5aa1c88ecc866d3928b98c9 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 7 Oct 2013 11:21:16 -0400 Subject: [PATCH] Email responsible authors if requested Signed-off-by: Shea Levy --- src/lib/Hydra/Plugin/EmailNotification.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index 87e1fb4b..f18a6569 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -84,6 +84,9 @@ sub buildFinished { if (scalar keys %{authors} > 0) { my @x = map { "$_ <$authors->{$_}>" } (sort keys %{$authors}); $authorList = join(" or ", scalar @x > 1 ? join(", ", @[0..scalar @x - 2]): (), $x[-1]); + if ($build->jobset->emailresponsible) { + $addresses{$authors->{$_}} = { builds => [ $build ] } foreach (keys %{$authors}); + } } # Send an email to each interested address.