Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
717f43e3
Commit
717f43e3
authored
Jun 05, 2019
by
Evan Read
Committed by
Achilleas Pipinellis
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit downstream variable content
parent
5fa1bd60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
doc/ci/multi_project_pipelines.md
doc/ci/multi_project_pipelines.md
+6
-5
No files found.
doc/ci/multi_project_pipelines.md
View file @
717f43e3
...
...
@@ -138,14 +138,15 @@ staging:
The
`ENVIRONMENT`
variable will be passed to every job defined in a downstream
pipeline. It will be available as an environment variable when GitLab Runner picks a job.
In the following configuration, the
`MY_VARIABLE`
variable will be passed
downstream, because jobs inherit variables declared in top-level
`variables`
:
In the following configuration, the
`MY_VARIABLE`
variable will be passed to the downstream pipeline
that is created when the
`trigger-downstream`
job is queued. This is because
`trigger-downstream`
job inherits variables declared in global variables blocks, and then we pass these variables to a downstream pipeline.
```
yaml
variables
:
MY_VARIABLE
:
my-value
my-pipeline
:
trigger-downstream
:
variables
:
ENVIRONMENT
:
something
trigger
:
my/project
...
...
@@ -156,14 +157,14 @@ example, predefined variables. In order to do that, you can use interpolation
to pass any variable. For example:
```
yaml
my-pipeline
:
downstream-job
:
variables
:
UPSTREAM_BRANCH
:
$CI_COMMIT_REF_NAME
trigger
:
my/project
```
In this scenario, the
`UPSTREAM_BRANCH`
variable with a value related to the
upstream pipeline will be passed to
a
`downstream
`
job, and will be available
upstream pipeline will be passed to
the
`downstream-job
`
job, and will be available
within the context of all downstream builds.
### Limitations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment