retry job on success
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
Retrying successful tests several times to find flakyness or timing issues, e.g. in scheduled nightly jobs
Intended users
Further details
The retry: keyword only deals with failure cases but a job should also be retryable only on success, i.e. the first failure aborts a series of n job re-runs.
Proposal
Proposal A:
retry:
max: 4
when: on_success
Proposal B:
retry:
min: 4
In both cases, the job would run 4 times or until the first faulty run occurred.
Edited by 🤖 GitLab Bot 🤖