Re: Have email-ext subject contain the number of changed files

2013-08-09 Thread Steven Deal
D'oh... clearly I know just enough to be dangerous. Thanks, it works! Loving email-ext more and more everyday. On Friday, August 9, 2013 10:13:31 AM UTC-4, slide wrote: > > The script isn't a template, just a script, so you don't need to use <% > %>, just use groovy to do what you want, the las

Re: Have email-ext subject contain the number of changed files

2013-08-09 Thread Slide
The script isn't a template, just a script, so you don't need to use <% %>, just use groovy to do what you want, the last line of the script is used as the "return value" for the script. So, just have chgCount as the last line outside of any <% %> blocks, and don't use <% %>. On Fri, Aug 9, 2013

Re: Have email-ext subject contain the number of changed files

2013-08-09 Thread Steven Deal
Thanks for the suggestions. I think #1 would be great, although I'm not sure I follow exactly how to do this. The documentation mentions it only uses the last value. *'**When this is used, only the last value in the script will be used in the expansion'* I'm not sure I understand what this me

Re: Have email-ext subject contain the number of changed files

2013-08-08 Thread Slide
There are two ways you can do this: 1) Create a groovy script in email-templates that gets the information and use the SCRIPT token to reference that script in your subject 2) Use a pre-send script to modify the subject line Either option would work, neither has any real drawbacks that I can thin

Have email-ext subject contain the number of changed files

2013-08-08 Thread Steven Deal
My project uses the extended email plugin. I have the content of the email built from a groovy template. A recent request was to provide a quick summary count of the number of files changed in the build on the subject line. I don't think there's a macro for this like we have for say TEST_COUNTS