Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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,

enter image description here

like image 964
Chubsdad Avatar asked Oct 25 '25 03:10

Chubsdad


1 Answers

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

enter image description here

  1. For Yaml build pipeline

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

enter image description here

enter image description here

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.

like image 153
Levi Lu-MSFT Avatar answered Oct 26 '25 23:10

Levi Lu-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!