Handle HYDRA_EMAIL_TEMPLATES that are paths

[?]
Jul 5, 2013, 9:22 PM
ZEDMA4P6CGAP5HLW7OZFPZIJRMQMWGLVGXLGLYQ52TYMNYYHIXJAC

Dependencies

  • [2] LDICTHWY Use Template::Toolkit to generate email messages
  • [*] 5EQYVRWE Add a plugin mechanism
  • [*] QDJRQIFF If multiple dependent builds fail, send a single email

Change contents

  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 15
    [5.34]
    [5.37]
    use FileHandle;
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 96
    [2.1536]
    [2.1536]
    if (-e $template) {
    my $fh = FileHandle->new($template, "r");
    if ($fh) {
    $template = $fh;
    }
    }
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 105
    [4.2264]
    [2.1646]
    if (ref($template) eq "FileHandle") {
    $template->close();
    }