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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5ba2788f
Commit
5ba2788f
authored
Jan 28, 2020
by
Fabio Pitino
Committed by
Marcel Amirault
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the usage of `trigger:strategy`
parent
4bfd95f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+21
-0
No files found.
doc/ci/yaml/README.md
View file @
5ba2788f
...
...
@@ -2681,6 +2681,27 @@ trigger_job:
strategy
:
depend
```
#### Linking pipelines with `trigger:strategy`
By default, the
`trigger`
job completes with the
`success`
status
as soon as the downstream pipeline is created.
To force the
`trigger`
job to wait for the downstream (multi-project or child) pipeline to complete, use
`strategy: depend`
. This will make the trigger job wait with a "running" status until the triggered
pipeline completes. At that point, the
`trigger`
job will complete and display the same status as
the downstream job.
```
yaml
trigger_job
:
trigger
:
include
:
path/to/child-pipeline.yml
strategy
:
depend
```
This can help keep your pipeline execution linear. In the example above, jobs from
subsequent stages will wait for the triggered pipeline to successfully complete before
starting, at the cost of reduced parallelization.
### `interruptible`
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/23464) in GitLab 12.3.
...
...
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