|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Thanks for taking care of that!
It would probably be a little bit simpler to use if it would be USER_ID and not the full name.
I needed to send email to the promotion user from promotion script and to get the address i used the following workaround:
create groovy script
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
name = args[0]
user = Jenkins.getInstance().getUser(name)
properties = user.getPrperties()
for (item in properties){
if (item.value instanceof hudson.tasks.Mailer.UserProperty){}
println(item.value.getAddress())
}
Then execute this during the promotion and pass the $PROMOTED_USER_NAME to get the email address for further work.