【问题标题】:How to create a Build Completion Trigger after creating YAML创建 YAML 后如何创建构建完成触发器
【发布时间】:2020-03-29 07:25:25
【问题描述】:
【问题讨论】:
标签:
azure-devops
continuous-integration
yaml
azure-pipelines
【解决方案1】:
编辑:微软提供了一种新的方式——管道资源:
在以下示例中,我们有两个管道 - app-ci(由 YAML sn-p 定义的管道)和 security-lib-ci(由管道资源引用的管道)。我们希望 app-ci 管道每次在 master 分支或任何发布分支中构建新版本的安全库时自动运行。
# this is being defined in app-ci pipeline
resources:
pipelines:
- pipeline: securitylib # Name of the pipeline resource
source: security-lib-ci # Name of the pipeline referenced by the pipeline resource
trigger:
branches:
- releases/*
- master
在这里查看more 信息。
旧答案:
编辑 YAML 时点击触发器:
那里添加触发器: