github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/gitlab/yaml/testdata/job_keywords/trigger/forward.yaml (about)

     1  # https://docs.gitlab.com/ee/ci/yaml/#triggerforward
     2  
     3  variables: # default variables for each job
     4    VAR: value
     5  
     6  # Default behavior:
     7  # - VAR is passed to the child
     8  # - MYVAR is not passed to the child
     9  child1:
    10    trigger:
    11      include: .child-pipeline.yml
    12  
    13  # Forward pipeline variables:
    14  # - VAR is passed to the child
    15  # - MYVAR is passed to the child
    16  child2:
    17    trigger:
    18      include: .child-pipeline.yml
    19      forward:
    20        pipeline_variables: true
    21  
    22  # Do not forward YAML variables:
    23  # - VAR is not passed to the child
    24  # - MYVAR is not passed to the child
    25  child3:
    26    trigger:
    27      include: .child-pipeline.yml
    28      forward:
    29        yaml_variables: false