-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
I'm not sure where the timeout step is defined, but it would be nice if it had some more intuitive parameters.
Currrently, it offers time and units.
options {
timeout time: 5, units: 'MINUTES'
}
Since Groovy and Jenkins both provide for optional parameters we should provide parameters to make this simpler to write:
options { timeout minutes: 5 }
This could also allow for combining of parameters:
options { timeout hours: 2, minutes: 15 }
[JENKINS-41393] Add time interval parameters to timeout step
Component/s | New: workflow-basic-steps-plugin [ 21712 ] | |
Component/s | Original: pipeline [ 21692 ] |
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: workflow-basic-steps-plugin [ 21712 ] |
Component/s | New: workflow-basic-steps-plugin [ 21712 ] | |
Component/s | Original: pipeline-model-definition-plugin [ 21706 ] |
The step is defined in workflow-basic-steps, and no change along these lines is likely implementable for technical reasons, but the options block option is specific to Declarative and implemented in pipeline-model-definition.