summaryrefslogtreecommitdiff
path: root/spec/frontend/editor/schema/ci/yaml_tests/positive_tests/include.yml
blob: 3497be28058e442c59e306597d68a17f3c9e6782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Covers https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70779

# test for include:rules
include:
  - local: builds.yml
    rules:
      - if: '$INCLUDE_BUILDS == "true"'
        when: always

stages:
  - prepare

# test for trigger:include
childPipeline:
  stage: prepare
  script:
    - echo 'creating pipeline...'
  trigger:
    include:
      - project: 'my-group/my-pipeline-library'
        file: '.gitlab-ci.yml'

# accepts optional ref property
childPipeline2:
  stage: prepare
  script:
    - echo 'creating pipeline...'
  trigger:
    include:
      - project: 'my-group/my-pipeline-library'
        file: '.gitlab-ci.yml'
        ref: 'main'