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
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
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
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
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
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
[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
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
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 re