diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 15:09:27 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-16 15:09:27 +0000 |
commit | 8d4aaa4dd07cd02383f7d09d74eb66ffe47a41c4 (patch) | |
tree | 684210b8b7c8b5664e8d7b529e59ffde6bcfaed4 /doc/ci/yaml | |
parent | cbfe03ae04a52d9825ff7cbeccdfe5d313adf6a2 (diff) | |
download | gitlab-ce-8d4aaa4dd07cd02383f7d09d74eb66ffe47a41c4.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/yaml')
-rw-r--r-- | doc/ci/yaml/README.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 1441526bc80..21eca42d8e7 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -2899,6 +2899,31 @@ trigger_job: strategy: depend ``` +##### Trigger child pipeline with generated configuration file + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/35632) in GitLab 12.9. + +You can also trigger a child pipeline from a [dynamically generated configuration file](../parent_child_pipelines.md#dynamic-child-pipelines): + +```yaml +generate-config: + stage: build + script: generate-ci-config > generated-config.yml + artifacts: + paths: + - generated-config.yml + +child-pipeline: + stage: test + trigger: + include: + - artifact: generated-config.yml + job: generate-config +``` + +The `generated-config.yml` is extracted from the artifacts and used as the configuration +for triggering the child pipeline. + #### Linking pipelines with `trigger:strategy` By default, the `trigger` job completes with the `success` status |