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/f6ef1b3c-7491-438c-a31b-3b929ea54183%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.