You can also just use a groovy script, ${SCRIPT, script="yourscript.groovy"}
On Jun 11, 2013 12:38 AM, "Louis Roché" <[email protected]> wrote:> Hi. > > You can use a groovy template in the recipients list to modifying the > recipients list. The last line of your script should return a string with > all the recipients. > For examples, you can have a file recipients.template: > > <% >> def authors = "[email protected]" >> >> if (build.environment["RELEASE_BUILD"]) { >> authors = build.environment["RELEASE_BUILD_EMAIL_DISTRIBUTION"] >> } >> %> >> >> ${authors} >> > > The recipients should be comma separated. > > And in your jobs configuration, in the recipients list, you put ${SCRIPT, > template="recipients.template"} > > Louis > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
