Skip to content

Use global instead of job-level variables when we want to override them

Mark Lapierre requested to merge remove-job-level-variables into master

Job-level variables override the global variables set in each project, e.g., .gitlab-ci.yml in the staging project sets QA_CAN_TEST_GIT_PROTOCOL_V2: 'true', as a global but was overriden by the false value in .qa because it's included at the job level.

See https://docs.gitlab.com/ee/ci/variables/README.html#priority-of-environment-variables

If we set the desired defaults as global variables here, then each project should be able to override then as globals (meaning we should be able to avoid having to change all of the per-project values).

Test pipelines:

Edited by Mark Lapierre

Merge request reports

Loading