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 wrote:
>
> 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 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("NAGINATOR_COUNT")
>> def ngmc = System.getenv("NAGINATOR_MAXCOUNT")
>> cancel = (ngc!=ngmc)
>>
>

-- 
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/274d7e03-2145-404a-95e1-6eadcfbc3eb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to