Copy variables when retrying job
What does this MR do and why?
Copies job variables when retrying job.
Related #327347 (closed)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- 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ć