For getting parameters, you'd want to look at the JavaDoc for AbstractBuild and go from there, the "build" variable can be used to get access to the fields.
For changing recipients, you would do something like this: import javax.mail.Message.RecipientType msg.setRecipients(RecipientType.TO, 'em...@foo.com') On Fri, May 31, 2013 at 8:45 AM, Chris Withers <ch...@simplistix.co.uk>wrote: > Hi All, > > When can I find examples of how to use the pre-send script of the > email-ext plugin? > > Specifically, I want to set the email recipients list based on the > contents of a parameter passed to the build. How would I do that? > > cheers, > > Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting > - http://www.simplistix.co.uk > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > jenkinsci-users+unsubscribe@**googlegroups.com<jenkinsci-users%2bunsubscr...@googlegroups.com> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- Website: http://earl-of-code.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.