小编Sta*_*Net的帖子

Azure DevOps 存储库触发器未触发

我希望在提交到同一 Azure 项目内的另一个存储库后运行一个存储库的管道。

我的管道定义:

resources:         
  repositories:
  - repository: SupDevA
    name: Sup.Dev.A
    type: git
    ref: test
    trigger:
      branches:
        include:
        - test
  
steps:
- script: 'echo test'


- template: dummy-template.yml@SupDevA
  parameters:
    text: 'testing if the dummy templates is executed'
Run Code Online (Sandbox Code Playgroud)

Sup.Dev.A 是在分支上进行提交时应触发我的管道的存储库的名称test。但是当我在分支测试上创建提交时,触发器不会触发。

两个存储库都在同一个项目中,我错过了什么吗?该代码基于MS文档https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#triggers

编辑:添加了 -template 部分,因此很明显,当手动触发时,管道会成功执行资源存储库中的模板

azure-devops azure-pipelines azure-pipelines-yaml

5
推荐指数
1
解决办法
1939
查看次数