CI: New predefined variable: CI_JOB_RETRIED, CI_JOB_RETRY_NUMBER
Problem to solve
I'd like to know if a job was manually retried, and - if this data is available in GitLab - how many times thus far.
New predefined variables in CI:
- CI_JOB_RETRIED (present only if retried, value
- CI_JOB_RETRY_NUMBER (present only if retried, value integer)
Rationale: I want to make sure a certain action in our CI is executed only once per a distinct change, and don't want to repeat it for retried jobs.