解决方案 Micorosft提供了一种新方法-管道资源: 在下面的示例中,我们有两个管道-app-ci(由YAML代码段定义的管道)和security-lib-ci(由管道资源引用的管道).我们希望每次在master分支或任何发行版分支中构建新版本的安全性库时,app-ci管道都可以自动运行.# this is being defined in app-ci pipelineresources: 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在此处检查更多信息.旧答案:当您编辑YAML时,请点击触发器": 添加触发器: Has anyone figured out how to actually 'use the Classic Editor' once you've gone through the effort of creating a YAML pipeline? I have two YAML pipelines I'm trying to link so pipe A kicks off after a successful completion of pipe B.According to Microsoft's own documentation: If it was a snake, it probably would have bit me, but I'm at a loss where/how/if "use the classic editor" is possible AFTER creating the pipeline in strictly YAML.https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#build-completion-triggers 解决方案 Edit: Micorosft provides a new way - pipeline resource:In the following example, we have two pipelines - app-ci (the pipeline defined by the YAML snippet) and security-lib-ci (the pipeline referenced by the pipeline resource). We want the app-ci pipeline to run automatically every time a new version of the security library is built in the master branch or any releases branch.# this is being defined in app-ci pipelineresources: pipelines: - pipeline: securitylib # Name of the pipeline resource source: security-lib-ci # Name of the pipeline referenced by the pipeline resource trigger: branches: - releases/* - masterCheck here more info.Old answer:When you edit the YAML click on Triggers:There add the trigger: 这篇关于创建YAML后如何创建构建完成触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-21 07:26