jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-49341] Pipeline retry clause : expose the retry number
- Dominant language
- Java
- Stars
- 73
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
When inside the `retry{}` clause, it may be useful to know which attempt number this is (e.g. to `archiveArtifacts` the debug logs under a uniquely named archive). Expose the retry number as a groovy and/or environment variable.
---
Originally reported by
jimklimov, imported from: Pipeline retry clause : expose the retry number
Raw content of original issue
When inside the `retry{}` clause, it may be useful to know which attempt number this is (e.g. to `archiveArtifacts` the debug logs under a uniquely named archive). Expose the retry number as a groovy and/or environment variable.
Contributor guide
Assessment
This issue has not been assessed yet.