Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48756

SMTP settings get lost after first email notification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • 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

            davidvanlaatum David van Laatum
            dlickay Dennis Lickay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: