In the example where we STOP an environment, the following text is quoted:
Also in the example,
GIT_STRATEGYis set to
noneso that GitLab Runner won’t try to check out the code after the branch is deleted when the
stop_review_appjob is automatically triggered.
It does this in the STOP ENV job:
stop_review: stage: deploy variables: GIT_STRATEGY: none <<<< THIS script: - echo "Remove review app" when: manual environment: name: review/$CI_COMMIT_REF_NAME action: stop
However, what if our STOP ENV job depends on global
variables? Setting this in the job will OVERWRITE the global variables.
variableskeyword is used on a job level, it overrides the global YAML variables and predefined ones.
Is there no way to control the GIT strategy without wiping all global variables?