Re: Change subject in email-ext

2015-04-23 Thread Faizan Javed
I tried this script The subject is displaying "def subject = 'Some Subject'" On Friday, April 17, 2015 at 6:27:05 PM UTC+5, slide wrote: > > def subject = 'Some Subject' > > if(build.result == Result.SUCCESS) { > > subject += ' - Build Succeeded!' > > } > > subject // required so that this is

Re: Change subject in email-ext

2015-04-17 Thread Slide
def subject = 'Some Subject' if(build.result == Result.SUCCESS) { subject += ' - Build Succeeded!' } subject // required so that this is "returned" from the script On Wed, Apr 15, 2015, 23:52 Faizan Javed wrote: > Can you show me an example of groovy script? > > > On Wednesday, April

Re: Change subject in email-ext

2015-04-15 Thread Faizan Javed
Can you show me an example of groovy script? On Wednesday, April 15, 2015 at 4:53:44 PM UTC+5, slide wrote: > > You could use the SCRIPT token in the subject and have the decision making > done in the groovy script. I do this for lots of things. > > On Wed, Apr 15, 2015 at 12:06 AM Faizan Javed

Re: Change subject in email-ext

2015-04-15 Thread Slide
You could use the SCRIPT token in the subject and have the decision making done in the groovy script. I do this for lots of things. On Wed, Apr 15, 2015 at 12:06 AM Faizan Javed wrote: > I am using email-ext plugin to trigger emails after the build fails or > become unstable. The build becomes u

Change subject in email-ext

2015-04-15 Thread Faizan Javed
I am using email-ext plugin to trigger emails after the build fails or become unstable. The build becomes unstable when some of the tests fail and the build fails when the compilation fail. Can we use conditions to display different customized subject depending on the cause of the email trigger