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 last

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

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