Thanks, yes, this worked :-)

Chris

On 31/05/2013 17:02, Slide wrote:
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 <mailto:em...@foo.com>')



On Fri, May 31, 2013 at 8:45 AM, Chris Withers <ch...@simplistix.co.uk
<mailto: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
    <mailto: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.



______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

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


Reply via email to