Alex Earl commented on New Feature JENKINS-16861

One of the little known features is that you can use a script in the recipient list. There are two pieces that you can use to do what you want I think.

1) Use the SCRIPT token and provide a script parameter directly so it doesn't try and use a template. This script would be used in the recipient field and would check if the build was claimed, if it was it would only return the person's email address that claimed it and this would be put into the recipient list. If no one has claimed the build, then you could return the full email list.

The pre-send script can indeed modify the recipient list since you have access to the message object.

In the future, the triggers will be an extension point, so anyone could implement a trigger, I think that would do what you want and allow for more portability and extensibility.

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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to