jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-41393] Add time interval parameters to timeout step

Open
#423 4 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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
}

---
Originally reported by bitwiseman, imported from: Add time interval parameters to timeout step


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20251215-220547

Raw content of original issue

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
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.