-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
email-ext-plugin 2.61
Jenkins 2.89.2
Docker (jenkins/jenkins:lts)
Hello,
I have a strange issue with the email notification plugin. We are setting up Jenkins within a Docker container using the scripting configuration. One of the settings is the email server as follows:
def desc = jenkins.getDescriptor("hudson.plugins.emailext.ExtendedEmailPublisher");
desc.setSmtpServer("smtp2.local");
desc.setDefaultSuffix("@suffix.com");
desc.save();
After the Jenkins is configured, everything looks good. The server and suffix are configured and visible in the system settings.
If the first job wants to send a notification, the settings get lost and the email as well.
Does anyone have the same/similar issue?
Best regards,
Dennis