Skip to content

Copy variables when retrying job

Matija Čupić requested to merge mc/manual-job-retry-copy-variables into master

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.

  1. Create a GitLab project
  2. Add a CI yaml config to the demo project
sample_job:
    variables:
        SETME : "<default>"
    script:
        - echo "SET_ME => $SET_ME"
    when: manual
  1. Set the SET_ME variables in the UI to example
  2. Run the sample_job manual job
  3. Check the log for the example variables output
  4. Retry the job
  5. 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.

Edited by Matija Čupić

Merge request reports