Retry a job with updated variables
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
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:
- Rerun a failed job with for example with
CI_DEBUG_TRACE - We run
npm auditduring build and fail if critical vulnerability are detected. We can then re-runSKIP_SECURITY_CHECKto 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)
Implementation Plan
- We need to update the GraphQL mutation: retryJobWithVariables to support updating variables for non-manual jobs.
- Add necessary test coverage
- We need to update the Retry icons to be rendered always.
- The form to update the variables can be re-used, with text / design updates
- Add necessary test coverage
Edited by 🤖 GitLab Bot 🤖
