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 14, 2022
1 parent 689ca0c commit 9fa8702
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 9fa8702

Please sign in to comment.