-
Improvement
-
Resolution: Fixed
-
Minor
-
None
job.with { wrappers { timeout { absolute(int timeout) } } }
We use a variable in our timeout that is set in prepare environment, to be able to increased if its a e.g. a maven release.
So current API doesn't work when only possible to add int's.
–
Workaround
job.with { configure{ project -> project / buildWrappers / 'hudson.plugins.build__timeout.BuildTimeoutWrapper' / strategy(class: "hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy") { timeoutMinutes "\${JOB_TIMEOUT}" } } }