Include who-broke-the-build information in notification emails

[?]
Oct 7, 2013, 3:13 PM
N5AS7EKYFZOTHWBTAZHOW7OXT6RXI2EDAWPMTTN42AU3VMQU77SQC

Dependencies

  • [2] E6SL7QRU Omit the system type if it's part of the job name
  • [*] 5EQYVRWE Add a plugin mechanism
  • [*] LDICTHWY Use Template::Toolkit to generate email messages
  • [*] QDJRQIFF If multiple dependent builds fail, send a single email

Change contents

  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 29
    [5.955]
    [5.955]
    [% END -%]
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 33
    [5.967]
    [5.967]
    [% IF nrCommits > 0 -%]
    This is likely due to [% IF nrCommits > 1 -%][% nrCommits %] commits by [% END -%][% authorList %].
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 36
    [5.978]
    [5.978]
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 80
    [6.1766]
    [4.1725]
    }
    my ($authors, $nrCommits) = getResponsibleAuthors($build, $self->{plugins});
    my $authorList;
    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]);
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 104
    [2.383]
    [5.1502]
    , nrCommits => $nrCommits
    , authorList => $authorList