Retry a job with updated variables

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

  • Collaborate/take over this issue

Hi

Thank you first for this great feature: https://about.gitlab.com/releases/2022/12/22/gitlab-15-7-released/#retry-a-manual-job-with-updated-variables

Would it be possible to provide the same options also for all kind of jobs?

We have the following use cases:

  1. Rerun a failed job with for example with CI_DEBUG_TRACE
  2. We run npm audit during build and fail if critical vulnerability are detected. We can then re-run SKIP_SECURITY_CHECK to skip this validation and get successful build.

Another question is, if it's possible to do same via the Jobs API

Proposal

Add buttons for failed/succeed/canceled (I am not sure we should support skipped jobs since, currently, users are unable to run them from the UI)

Screenshot_2024-12-18_at_15.26.47

  • Figma dev

Implementation Plan

backend

  1. We need to update the GraphQL mutation: retryJobWithVariables to support updating variables for non-manual jobs.
  2. Add necessary test coverage

frontend

  1. We need to update the Retry icons to be rendered always.
  2. The form to update the variables can be re-used, with text / design updates
  3. Add necessary test coverage
Edited Aug 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading