Hi Tom,

In presend script you can mention like this..

import hudson.model.Cause.UpstreamCause
 def cause = build.causes.find {
      if(it instanceof hudson.model.Cause.UpstreamCause) {
          return true
      }
      return false
 }

if(cause)
{
cancel=true
}

I don't know how it cancel based on shell..Probably you can check some
api's.
What's your shell script actually doing?

Regards,
varghese

On Fri, Nov 9, 2012 at 4:45 AM, Tom80112 <nez...@yahoo.com> wrote:

> Inside my "execute shell" window I perform script logic.
>
> Based on the results within the "execute shell" window, I may or may
> not want to send email via the Jenkins Email Extension Plugin.
>
> I have read that I can set up a pre-send script to cancel email being
> set up by setting cancel=true.
>
> My question is how how I set cancel=true based upon the outcome of
> logic within the "execute shell" window?   There is no way to pass a
> variable from the "execute shell" window to the pre-send script.. ????
>
> Please Help.. :)
>
>
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/Editable-Email-Notification-How-do-I-set-conditional-Email-Logic-tp4645626.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>

Reply via email to