I would recommend using groovy templates instead of Jelly templates. I
added the ability to use the content tokens in the groovy templates in
2.29. You can do something like ${CHANGES()} to use the content of the
CHANGES token. It works for things with parameters as well ${ENV(var:
"FOO")}.slide On Thu, May 16, 2013 at 9:35 AM, lata <[email protected]> wrote: > ah, i didn't know that. > > > On Wednesday, May 15, 2013 5:05:07 PM UTC+5:30, slide wrote: > >> There is also a ${CHANGES} content token, but you can't use it directly >> in a Jelly script, you would have to retrieve the changes yourself. >> >> >> On Wed, May 15, 2013 at 4:24 AM, lata <[email protected]> wrote: >> >>> syntax for variables: >>> ${ENV, var="CHANGES"} where CHANGES is your var name. >>> >>> jelly scripts can be used v2.9 and above, what version of email-ext is >>> yours? >>> >>> On Wednesday, May 15, 2013 5:09:48 AM UTC+5:30, David Brossard wrote: >>>> >>>> >>>> I have tried to add email notifications into Jenkins but I have been >>>> unable to get anything other than the default variables to work. I have >>>> tried adding >>>> $CHANGES >>>> ${CHANGES} >>>> and both show nothing in the email. >>>> I have tried adding the example: ${JELLY_SCRIPT,template=”html”****} >>>> but it just shows literally ${JELLY_SCRIPT,template=”html”****} in the >>>> email. >>>> Can someone please help me get the syntax correct? Ihave included a >>>> screen shot of my config. Here is an example email output from the that >>>> config. Notice no changes show up and the literal Jelly string. >>>> >>>> DEV-Build and Deploy - Build # 208 - Successful: Check console output >>>> at >>>> http://myserver:8080/job/DEV-**B**uild%20and%20Deploy/208/<http://myserver:8080/job/DEV-Build%20and%20Deploy/208/>to >>>> view the results. ${JELLY_SCRIPT,template=”html” >>>> ****} >>>> >>>> >>>> >>>> >>>> <https://lh3.googleusercontent.com/-sWbXsXVw8Xk/UZLK360FH6I/AAAAAAAAAB4/A9tPEcrKx0w/s1600/snap.png> >>>> >>> -- >>> 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-use...@**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 <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 [email protected]. > For more options, visit 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
