jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-54735] Pipeline retry clause: optionally delay between retries
- Dominant language
- Java
- Stars
- 73
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
I use a retry block to perform requests on a remote server that I don't control (e.g., Apple's Code Signing or Notarization service), and sometimes that remote server is offline.
Currently retry immediately retries upon failure, so when the remote server is offline for an extended period of time, my pipeline project quickly retries and then the build fails.
It would be nice to have the ability to make retry wait after each failure, with optional exponential backoff (doubling the wait time after each failure), to give these builds a greater chance of success. For example:
retry(tries:5, waitSecondsBetweenFailures:30, doubleWaitTimeAfterEachFailure:true)
---
Originally reported by
smokris, imported from: Pipeline retry clause: optionally delay between retries
Raw content of original issue
I use a retry block to perform requests on a remote server that I don't control (e.g., Apple's Code Signing or Notarization service), and sometimes that remote server is offline.
Currently retry immediately retries upon failure, so when the remote server is offline for an extended period of time, my pipeline project quickly retries and then the build fails.
It would be nice to have the ability to make retry wait after each failure, with optional exponential backoff (doubling the wait time after each failure), to give these builds a greater chance of success. For example:
retry(tries:5, waitSecondsBetweenFailures:30, doubleWaitTimeAfterEachFailure:true)
Contributor guide
Assessment
This issue has not been assessed yet.