@Craig

Have you figured out a way to access the retry number from a groovy script? 
I'm having the same exact problem you're having with naginator and the 
email plugin. Since I'm not sure how to stop the email from going out, my 
idea was to set the recipient only when it's fails and is on the last retry 
number.

On Tuesday, August 5, 2014 at 5:41:45 PM UTC-4, Craig wrote:
>
>  Naginator knows the last attempt, because it knows when to give up.
>
> What I’m asking is whether there is any integration between Naginator and 
> one of the email plugins that will let me do this without writing scripts.  
> It sounds like the answer is “no”.
>
>  
>
>  
>
> *From:* jenkins...@googlegroups.com <javascript:> [mailto:
> jenkins...@googlegroups.com <javascript:>] *On Behalf Of *Slide
> *Sent:* Tuesday, August 05, 2014 5:25 PM
> *To:* Jenkins User Mailing List
> *Subject:* Re: Email only after all retries fail
>
>  
>  
> How do you determine if the job will be the last attempt? If there is 
> something in the environment or something like that which tells you it is 
> the last attempt, you could use a pre-send script to cancel sending the 
> email unless that condition was met.
>  
>  
>  
> On Tue, Aug 5, 2014 at 1:44 PM, Harpel, Craig <cha...@mitre.org 
> <javascript:>> wrote:
>
>   I’m trying to get Jenkins to send email to recipients only after the 
> last attempted retry of a job fails.  In other words, I don’t want them 
> getting email for all the failures; just if they **all** fail.  Is there 
> a way to do that with the email-ext plugin and naginator?
>
>  
>
> Thanks.
>
> Craig
>
>  
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>  
>
>   
>  
> -- 
> Website: http://earl-of-code.com 
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/73b3fd74-40c9-45a2-b9cf-72dd43103da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to