Skip to content

Commit

Permalink
Fixed mail server configuration for Jenkins
Browse files Browse the repository at this point in the history
- Added MAIL_HOST

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Sep 15, 2022
1 parent e44db70 commit a201c64
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ private void configureEnvironment(Map<String, String> env) {
env.put("JDK17_HOME", cfg.getJdkDirectory().getAbsolutePath());
env.put("JDK", "JDK17");
if (mailServer != null) {
env.put("MAIL_HOST", mailServer.getHost());
env.put("SMTP_PORT", String.valueOf(mailServer.getMappedPort(MAIL_SMTP_PORT)));
env.put("IMAP_PORT", String.valueOf(mailServer.getMappedPort(MAIL_IMAP_PORT)));
}
Expand Down

0 comments on commit a201c64

Please sign in to comment.