Unable to overwrite GIT_STRATEGY in a child-pipeline
Summary
When setting the GIT_STRATEGY to none in a parent pipeline, no child-pipeline-jobs will do a checkout, even when you overwrite the variable
Steps to reproduce
Create two files:
.gitlab-ci.yml:
stages:
- test
variables:
GIT_STRATEGY: none
start_test_pipeline:
stage: test
trigger:
include: test-gitlab-ci.yml
strategy: depend
test-gitlab-ci.yml:
stages:
- provision
provision:
stage: provision
variables:
GIT_STRATEGY: clone
script:
- ls -lah
Example Project
https://gitlab.com/hoekzema/TestCIProject
What is the current bug behavior?
The provision job will show an empty directory
What is the expected correct behavior?
After setting GIT_STRATEGY: clone, gitlab should do a git checkout and 'ls' should show our files.
Relevant logs and/or screenshots
https://gitlab.com/hoekzema/TestCIProject/-/pipelines/272481661 - note how the ls in the child-pipeline job should show a git directory, not an empty directory.
Output of checks
This bug happens on GitLab.com
Edited by Kees Hoekzema