jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-61034] retry step is ignored when a timeout happens a timeout

Open
#505 3 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

After upgrade to the latest version of the Jenkins core and workflow-basic-steps-plugin, we have detected that the behavior of the retry + timeout steps changes, the following code before the change was retied 3 times, now the job is aborted in the first timeout so the retry is ignored.

pipeline {

agent any
stages {
stage('Test timeout') {
steps {
retry(3){
timeout(time: 10, unit: 'SECONDS'){
sleep 30
}
}
}
}
}
}

---
Originally reported by ifernandezcalvo, imported from: retry step is ignored when a timeout happens a timeout


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

Raw content of original issue

After upgrade to the latest version of the Jenkins core and workflow-basic-steps-plugin, we have detected that the behavior of the retry + timeout steps changes, the following code before the change was retied 3 times, now the job is aborted in the first timeout so the retry is ignored.


pipeline {

agent any
stages {
stage('Test timeout') {
steps {
retry(3){
timeout(time: 10, unit: 'SECONDS'){
sleep 30
}
}
}
}
}
}

environment

```
Jenkins core 2.219

workflow-basic-steps-plugin 2.19
```

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.