构建管道的默认分支。这是什么意思?
Build pipeline's default branch. What does it mean?
在 Azure DevOps Services 的发布工作流程中,在设置持续部署触发器时,有这个选项
'The build pipeline's default branch'
。我不明白这意味着什么以及如何查看项目中不同管道的默认分支。对这方面文档的任何参考也将有所帮助
它出现在管道中的其他几个地方,但我现在不记得了。
谢谢,
如this document所述,默认分支通常是主分支,但您可以在构建管道设置中配置默认分支。
您可以在构建管道设置中查看构建管道的默认分支。请查看以下截图
1.For classic UI build pipeline.
任务 > 获取源 > 手动和计划构建的默认分支
- For Yaml build pipeline
单击右上角的 3 个点 > 触发器 > Yaml > 获取源 > 手动和计划构建的默认分支
下面是构建管道的默认分支发布管道中的构建过滤器的说明。希望对您的理解有所帮助。请查看此 document 了解更多信息。
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.
在 Azure DevOps Services 的发布工作流程中,在设置持续部署触发器时,有这个选项
'The build pipeline's default branch'
。我不明白这意味着什么以及如何查看项目中不同管道的默认分支。对这方面文档的任何参考也将有所帮助
它出现在管道中的其他几个地方,但我现在不记得了。
谢谢,
如this document所述,默认分支通常是主分支,但您可以在构建管道设置中配置默认分支。
您可以在构建管道设置中查看构建管道的默认分支。请查看以下截图
1.For classic UI build pipeline.
任务 > 获取源 > 手动和计划构建的默认分支
- For Yaml build pipeline
单击右上角的 3 个点 > 触发器 > Yaml > 获取源 > 手动和计划构建的默认分支
下面是构建管道的默认分支发布管道中的构建过滤器的说明。希望对您的理解有所帮助。请查看此 document 了解更多信息。
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.