【问题标题】:triggering one pipeline from another with particular branch使用特定分支从另一个管道触发一个管道
【发布时间】:2022-06-16 13:22:47
【问题描述】:

我有 ABC 和 DEF 管道,我希望 DEF 在 ABC 成功运行后运行,所以我在 DEF 中编写了如下所示的 YAML。

  pipelines:
    - pipeline: test   # Internal name of the source pipeline
      source: ABC
      trigger: true

管道触发,但我想为 release/* 最新分支下的分支触发管道。 DEF 中 master 的管道触发。 ABC 只是 cron JOB。有什么方法可以为我们想要的分支而不是 master 触发 DEF。

【问题讨论】:

    标签: azure-devops continuous-integration azure-pipelines continuous-deployment continuous-delivery


    【解决方案1】:

    你可以尝试修改如下yaml试试:

    trigger:
    
    - DEF
    
    
    
    resources:
    
     pipelines:
    
       - pipeline: test
    
         project: your_project_name
    
         source: ABC
    
         branch: release/* #latest branch
    
         trigger:
    
          branches:
    
            - release/* #latest branch
    

    【讨论】:

      猜你喜欢
      • 2022-08-11
      • 1970-01-01
      • 2020-06-14
      • 2021-01-13
      • 1970-01-01
      • 1970-01-01
      • 2022-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多