|
||||||||
|
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/groups/opt_out.

Looks like you mostly had it in the comments for Jenkins-16861. Here is what we use:
build.actions.each { action ->
if(action.class.name == "hudson.plugins.claim.ClaimBuildAction" && action.isClaimed()) { logger.println(action.getClaimedBy()); hudson.model.User user = hudson.model.User.get(action.getClaimedBy()); address = user.getProperty(hudson.tasks.Mailer.UserProperty).getAddress() ; logger.println("Sending to " + address ); msg.setRecipients(javax.mail.Message.RecipientType.TO, address ); }
}
Note that we use the LDAP plugin to talk to ActiveDirectory.