Re: email-ext - request for another jelly script example

2012-03-27 Thread Slide
You can use the PROJECT_DEFAULT_CONTENT in the triggers for them to use the same content as you specified in the main area for the content. On Tue, Mar 27, 2012 at 1:48 PM, dpreilan wrote: > Create your groovy script and place in under your $JENKINS_HOME/email- > templates. Create the email-temp

Re: email-ext - request for another jelly script example

2012-03-27 Thread dpreilan
Create your groovy script and place in under your $JENKINS_HOME/email- templates. Create the email-templates directory if needed. Say you call it foo.template. In your jenkins job(s), configure your "Editable Email Notification" Content area, like: ${SCRIPT,template="foo.template"} Make sure you

Re: email-ext - request for another jelly script example

2012-03-24 Thread Chris Withers
On 24/03/2012 00:48, Slide wrote: I use something like this in my groovy template // the goal is to find the top level job which should contain the changelist def upstreamBuild = null def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true

Re: email-ext - request for another jelly script example

2012-03-23 Thread Slide
I use something like this in my groovy template // the goal is to find the top level job which should contain the changelist def upstreamBuild = null def cause = build.causes.find { if(it instanceof hudson.model.Cause.UpstreamCause) { return true } return false } while(cause !

Re: email-ext - request for another jelly script example

2012-03-23 Thread Chris Withers
On 19/03/2012 15:26, Slide wrote: This is awesome. Thanks for sharing! I've heard of several people who would like to do something like this. I'll try and add it to the wiki for email-ext. Sorry for topic hijacking, but I tried asking this before and got no response, yet this topic seems simil