diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-02 21:08:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-02 21:08:28 +0300 |
commit | 888bb81daaf346356c1fdd84a60108417fe2e774 (patch) | |
tree | 72c8ebcd8362185afdc91ed1c16b5f300b2fdc7b /doc/ci/pipelines | |
parent | e61f798b74e8e18fca7239fd01802182479bfcfc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/pipelines')
-rw-r--r-- | doc/ci/pipelines/multi_project_pipelines.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ci/pipelines/multi_project_pipelines.md b/doc/ci/pipelines/multi_project_pipelines.md index 52939e75d4c..e3fe0fd20f5 100644 --- a/doc/ci/pipelines/multi_project_pipelines.md +++ b/doc/ci/pipelines/multi_project_pipelines.md @@ -154,6 +154,21 @@ trigger-downstream: trigger: my/project ``` +You can stop global variables from reaching the downstream pipeline by using the [`inherit` keyword](../yaml/index.md#inherit). +In this example, the `MY_GLOBAL_VAR` variable is not available in the triggered pipeline: + +```yaml +variables: + MY_GLOBAL_VAR: value + +trigger-downstream: + inherit: + variables: false + variables: + MY_LOCAL_VAR: value + trigger: my/project +``` + You might want to pass some information about the upstream pipeline using, for example, predefined variables. In order to do that, you can use interpolation to pass any variable. For example: |