Copy manual variables when retrying job
What does this MR do and why?
Copies job variables when retrying job.
Original MR !75042 (merged)
Revert MR !75682 (merged)
Related incident gitlab-com/gl-infra/production#5991 (closed)
Related #327347 (closed)
How to set up and validate locally
- Create a GitLab project
- Add a CI yaml config to the demo project
sample_job:
variables:
SETME : "<default>"
script:
- echo "SET_ME => $SET_ME"
when: manual
- Set the
SET_ME
variables in the UI toexample
- Run the
sample_job
manual job - Check the log for the
example
variables output - Retry the job
- See the
SET_ME
variable output is the same as the one when the job was first ran
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Matija Čupić