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

Global environment variables are not being resolved in Email Notification Recipients list for maven 2/3 projects

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      When using a global environment variable, defined in "Manage Jenkins > Configure System > Environment Variables" (e.g. "ALERT_EMAIL_LIST"), in the "Email Notification > Recipients" list of a maven 2/3 project (e.g. "${ALERT_EMAIL_LIST}") the environment variable is not resolved. In the console output we see: "Sending e-mails to: ${ALERT_EMAIL_LIST}@test.com".

      Note that it DOES work in an "free-style software project".

      So, it does not work within <hudson.maven.reporters.MavenMailer>, but it does work within <hudson.tasks.Mailer>.

          [JENKINS-13277] Global environment variables are not being resolved in Email Notification Recipients list for maven 2/3 projects

          jfreej created issue -
          Alex Earl made changes -
          Component/s Original: email-ext [ 15538 ]
          Arnaud Héritier made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: notification-plugin [ 16106 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 143741 ] New: JNJira + In-Review [ 175986 ]
          Andre Tadeu de Carvalho made changes -
          Assignee New: Andre Tadeu de Carvalho [ andretadeu ]
          Andre Tadeu de Carvalho made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andre Tadeu de Carvalho made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Olivier Lamy made changes -
          Assignee Original: Andre Tadeu de Carvalho [ andretadeu ] New: Olivier Lamy [ olamy ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            olamy Olivier Lamy
            jfreej jfreej
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: