Variable GIT_STRATEGY is ignored for trigger jobs
Summary
Variable GIT_STRATEGY=none
works for regular jobs, but is ignored for trigger jobs.
Steps to reproduce
I have a simple deploy / undeploy pipeline which creates / stops an environment. When the pipeline is run from a branch which is subsequently deleted, the undeploy job starts. If the undeploy job is a regular job, variable GIT_STRATEGY=none
is taken into account. However, if the undeploy job is a trigger job, value of the variable is ignored and the pipeline fails on error "downstream pipeline cannot be created, Reference not found". See the repro use-case for details.
Example Project
Repo: https://gitlab.com/mhorejsi/git-strategy-bug-repro
Failed pipeline: https://gitlab.com/mhorejsi/git-strategy-bug-repro/-/pipelines/1040807501
What is the current bug behavior?
The trigger job fails.
What is the expected correct behavior?
The trigger job succeeds, no git operation happens.
Possibly related issues
This issue may be related to #325254.