Build pipeline's default branch. What does it mean?

回眸只為那壹抹淺笑 提交于 2020-12-15 03:43:18

问题


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,


回答1:


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.



来源:https://stackoverflow.com/questions/59744189/build-pipelines-default-branch-what-does-it-mean

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!