retry job on success

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

Retrying successful tests several times to find flakyness or timing issues, e.g. in scheduled nightly jobs

Intended users

  • Devon (DevOps Engineer)

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 Sep 04, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading