[
https://issues.jenkins-ci.org/browse/JENKINS-11772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158621#comment-158621
]
Slide-O-Mix commented on JENKINS-11772:
---------------------------------------
Just as an FYI, this is doable right now. You can set environment variables for
each list of addresses and then use the ENV token in the recipient area for the
project. Then you would only need to change the address list in one spot (the
global config).
> Add support for a dynamic number of global recipient lists which can then be
> used in multiple jobs
> --------------------------------------------------------------------------------------------------
>
> Key: JENKINS-11772
> URL: https://issues.jenkins-ci.org/browse/JENKINS-11772
> Project: Jenkins
> Issue Type: Improvement
> Components: email-ext
> Reporter: Laszlo Miklosik
> Assignee: Slide-O-Mix
> Priority: Minor
>
> In the I work in projects we use multiple Jenkins jobs for the same source
> code:
> - one which polls the SCM every minute and just runs the unit tests also
> deploys the latest snapshots to a maven group repository
> - one which runs only at night (or on manual trigger) and executes the Sonar
> static code analysis
> - one which releases the code (in sense of maven release plugin)
> - multiple deployment jobs which deploy the resulted WAR artifacts to
> TEST/ACC/PROD environments
> Normally I use the same list of recipients for all these (the emails of all
> project team members), but these list are maintained in each job's
> configuration, thus are duplicated. This becomes annoying when a developer
> leaves the team and does not want to receive the emails anymore or when a new
> developer is added to the team. Manual updating of the email list is needed
> now needed in all jobs.
> A nice feature would be to be able to define a dynamic number of global
> recipient lists under the plugin's global configuration page (Manage Jenkins
> > Configure System > Extended E-mail Notification section) and then being
> able to use these lists in Jenkins jobs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira