fixed email bug
This commit is contained in:
parent
1495e04d9d
commit
2e02291092
|
@ -5,6 +5,7 @@ use File::Basename;
|
||||||
use File::stat;
|
use File::stat;
|
||||||
use Hydra::Schema;
|
use Hydra::Schema;
|
||||||
use Hydra::Helper::Nix;
|
use Hydra::Helper::Nix;
|
||||||
|
use Hydra::Helper::AddBuilds;
|
||||||
use Email::Sender::Simple qw(sendmail);
|
use Email::Sender::Simple qw(sendmail);
|
||||||
use Email::Sender::Transport::SMTP;
|
use Email::Sender::Transport::SMTP;
|
||||||
use Email::Simple;
|
use Email::Simple;
|
||||||
|
@ -82,7 +83,7 @@ sub sendEmailNotification {
|
||||||
|
|
||||||
die unless defined $build->resultInfo;
|
die unless defined $build->resultInfo;
|
||||||
|
|
||||||
return if !($build->maintainers && $build->jobset->enableemail);
|
return if ! ( $build->jobset->enableemail && ($build->maintainers neq "" || $build->jobset->emailoverride neq "") );
|
||||||
|
|
||||||
# Do we want to send mail?
|
# Do we want to send mail?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue