From cd4685432eff18f4c829ff44a8ac990ddaf8971b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sat, 3 Jun 2023 03:08:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- doc/ci/pipelines/downstream_pipelines.md | 6 ++++++ doc/ci/variables/index.md | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'doc/ci') diff --git a/doc/ci/pipelines/downstream_pipelines.md b/doc/ci/pipelines/downstream_pipelines.md index ffcfee98f05..9de1e225a81 100644 --- a/doc/ci/pipelines/downstream_pipelines.md +++ b/doc/ci/pipelines/downstream_pipelines.md @@ -661,6 +661,12 @@ For example, in a [multi-project pipeline](#multi-project-pipelines): artifacts: true ``` +### Control what type of variables to forward to downstream pipelines + +Use the [`trigger:forward` keyword](../yaml/index.md#triggerforward) to specify +what type of variables to forward to the downstream pipeline. Forwarded variables +are considered trigger variables, which have the [highest precedence](../variables/index.md#cicd-variable-precedence). + ## Troubleshooting ### Trigger job fails and does not create multi-project pipeline diff --git a/doc/ci/variables/index.md b/doc/ci/variables/index.md index 64a0f1038ad..1e50756d08f 100644 --- a/doc/ci/variables/index.md +++ b/doc/ci/variables/index.md @@ -718,6 +718,10 @@ use this setting for control over the environment the pipeline runs in. The example can be copied to your own group or instance for testing. More details on what other GitLab CI patterns are demonstrated are available at the project page. +- You can [pass CI/CD variables to downstream pipelines](../pipelines/downstream_pipelines.md#pass-cicd-variables-to-a-downstream-pipeline). + Use [`trigger:forward` keyword](../yaml/index.md#triggerforward) to specify what type of variables + to pass to the downstream pipeline. + ## Troubleshooting ### List all variables -- cgit v1.2.3