Alex Earl commented on New Feature JENKINS-16861

When using a script in the recipient list, your last line of the script must be a string with comma separated addresses.

def committers = []
// loop through and grab committers from somewhere cool
// here comes the last line
committers.unique().join(',')

When trying to do content (body) you want to create a template, not a script.
${SCRIPT, template="output-claim-info.template"}

Did you try this?

import hudson.tasks.Mailer.UserProperty

address = user.getProperty(hudson.tasks.Mailer.UserProperty.class).address

You can definitely provide default recipients, just do something like this:

Project Recipient List: [email protected], ${SCRIPT, script="get-claim-recipient.groovy"}

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.
 
 

Reply via email to