Make it possible to limit an amount of CI/CD job retries

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

  • Close this issue

Description

We should make it possible to limit number of times that a job can be retried.

This is not going to limit job parallelism, only a retry count.

Part of https://gitlab.com/gitlab-org/gitlab-ee/issues/3477

Proposal

Disable all job and pipeline retry buttons and add a tooltip with explanatory text. Depending on whether we're talking about a single job or a pipeline, the explanatory text is adjusted:

  • Single job: This job reached the retry limit
  • Pipeline: A job in his pipeline reached the retry limit

Similar messages can be used as API responses.

Here's an overview of how these tooltips would look like in the different places users can retry pipelines and jobs (the not-allowed cursor is not shown in these images but in the final implementation they would be there when hovering any of these buttons):

Pipeline list Pipeline graph Mini-pipeline graph Pipeline detail Pipeline jobs tab Job detail
image image image image image image
Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading