This does not appear to work (tested in 1.361). Either I've misunderstood the feature, or it's broken.
On the main Hudson configuration page, I defined an environment variable HUDSON_EMAILS_FOR_GDA_ADMINISTRATOR and an associated value.
In the configuration for a specific job, I specified an email recipient list of ${HUDSON_EMAILS_FOR_GDA_ADMINISTRATOR}. This is the standard Hudson email, not the extended email plugin.
When the job fails and tries to send an email, I get
com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <${HUDSON_EMAILS_FOR_GDA_ADMINISTRATOR}>... User unknown
I displayed the value of the environment variable in one of the build steps, and it is set correctly.
Code changed in hudson
User: : abayer
Path:
trunk/hudson/main/core/src/main/java/hudson/tasks/Mailer.java
http://jenkins-ci.org/commit/30485
Log:
[FIXED JENKINS-6394] Email recipient lists now support build parameters