Skip to content

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

  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

Loading