Re: Email only after all retries fail

2018-05-05 Thread Sandeep R Kurup
hey if in case you are still facing the issue, You can use jenkins Editable Email Notification plugin and in advanced settings you will have an option of failure-X where you can specify after how many failures you need to send the email. Old versions of jenkins may not be helping with this. So

Re: Email only after all retries fail

2017-01-26 Thread ram g
Hi Michal, I have used below script, but Still email gets triggered for all builds- def retryCount = build.envVars['NAGINATOR_COUNT'] ?: 0; def retryMaxCount = build.envVars['NAGINATOR_MAXCOUNT'] ?: 3; retryCount == retryMaxCount On Wednesday, June 15, 2016 at 6:13:17 PM UTC-4, Michal Kubenka wr

Re: Email only after all retries fail

2016-06-15 Thread Michal Kubenka
Try this: // You need some different default values so it won't be a null def retryCount = build.envVars['NAGINATOR_COUNT'] ?: 0 def retryMaxCount = build.envVars['NAGINATOR_MAXCOUNT'] ?: 1 retryCount == retryMaxCount On Monday, May 23, 2016 at 5:34:40 PM UTC+2, Илья Ефимов wrote: > > Hi. I als

Re: Email only after all retries fail

2016-05-23 Thread Илья Ефимов
Hi. I also have same problem and with latest (1.17 - Mar 12, 2016) version of naginator it seems can be solved with NAGINATOR_COUNT, NAGINATOR_MAXCOUNT, NAGINATOR_BUILD_NUMBER variables. But I have no idea how to make it working. For example my non-working script: def ngc = System.getenv("NAGINA

Re: Email only after all retries fail

2015-04-20 Thread Jarvis
will let me do this without writing scripts. > It sounds like the answer is “no”. > > > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Slide > *Sent:* Tuesday, August 05, 2014 5:25 PM > *To:* Jenkins Use

RE: Email only after all retries fail

2014-08-05 Thread Slide
i-users@googlegroups.com] *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 environmen

RE: Email only after all retries fail

2014-08-05 Thread Harpel, Craig
[mailto:jenkinsci-users@googlegroups.com] 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

Re: Email only after all retries fail

2014-08-05 Thread Slide
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, Crai