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.

          [JENKINS-49341] Pipeline retry clause : expose the retry number

            Unassigned Unassigned
            jimklimov Jim Klimov
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: