-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.7.4
Pipeline suite plugin 2.4
Hi,
The following date/time arithemetics which work in groovy - do not work in a pipeline script:
import groovy.time.* def startDate = new Date() def timeout = startDate + 1.hours //increment 1 hour
use( TimeCategory ) doesn't help.
I get the following error:
groovy.lang.MissingPropertyException: No such property: hours for class: java.lang.Integer
I also wasn't able to find any workaround for this - I was only able to increment integers (as in days)
The same picture almost
The code
is working fine but in one perfect day stop working with error