构建管道的默认分支.这是什么意思? [英] Build pipeline's default branch. What does it mean?

查看:70
本文介绍了构建管道的默认分支.这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Azure DevOps Services的发布"工作流中,设置持续部署"触发器时,有此选项

构建管道的默认分支"

.我不明白这是什么意思,以及如何查看项目中不同管道的默认分支.在这方面对文档的任何引用也会有所帮助

这也出现在管道中的其他几个地方,但我现在不记得了.

谢谢

解决方案

  1. 对于Yaml构建管道

单击右上角的3个点>触发器> Yaml>获取源>手动和计划构建的默认分支

以下是发布管道中构建管道的默认分支构建过滤器的说明.希望对您的理解有所帮助.请检查此文档了解更多信息.

或者,您可以指定一个过滤器以使用在构建管道中指定的默认分支.例如,当每个开发sprint中默认的build分支发生更改时,此功能将非常有用.这意味着您不需要为所有更改而在所有发布管道中都更新触发器过滤器-只需在构建管道中更改默认分支即可.

In the Release workflow in Azure DevOps Services, while setting up Continuous Deployment trigger, there is this option which

'The build pipeline's default branch'

. I don't understand what it means and how can I view the default branches for different pipelines in my project. Any reference to documentation on this aspect will also help

This appears in a couple of other places also in the Pipelines, but I can't remember it now.

Thanks,

解决方案

As this document describes the default branch is usually the master branch, but you can configure your default branch in your build pipeline settings.

You can view The build pipeline's default branch in your build pipeline settings. Please check below screenshots

1.For classic UI build pipeline.

Tasks > Get sources > Default branch for manual and scheduled builds

  1. For Yaml build pipeline

Click 3 dots on the top right corner > Triggers > Yaml > Get Sources > Default branch for manual and scheduled builds

Below is the description for The build pipeline's default branch build filter in release pipeline. Hope it is helpful for your understanding. Please check this document for more information.

Alternatively, you can specify a filter to use the default branch specified in the build pipeline. This is useful when, for example, the default build branch changes in every development sprint. It means you don't need to update the trigger filter across all release pipelines for every change - instead you just change the default branch in the build pipeline.

这篇关于构建管道的默认分支.这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆