【问题标题】:How to trigger downstream pipeline in gitlab ci using different yml file?如何使用不同的 yml 文件在 gitlab ci 中触发下游管道?
【发布时间】:2021-08-02 16:30:13
【问题描述】:

我需要使用特定的 yml 文件来触发下游项目。

所以,我在上游项目中有以下内容:

trigger-integration-test:
  stage: test
  trigger:
      project: platform/api-testing

但它在根目录中使用 .gitlab-ci.yml 但我需要使用 /path/to/different/.diffferent-gitlab-ci.yml

【问题讨论】:

    标签: gitlab gitlab-ci


    【解决方案1】:

    您可以在此处使用parent-child pipeline

    trigger-integration-test:
      stage: test
      trigger:
        include:
          - project: 'platform/api-testing'
            file: '/path/to/different/.diffferent-gitlab-ci.yml'
    

    【讨论】:

      猜你喜欢
      • 2020-09-20
      • 2020-06-15
      • 2021-03-16
      • 1970-01-01
      • 2022-07-22
      • 2022-11-15
      • 1970-01-01
      • 2021-08-15
      • 2017-08-25
      相关资源
      最近更新 更多