The pipeline default branch

Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2020

A pipeline's default branch defines the pipeline version used for manual builds, scheduled builds, retention policies, and in pipeline resource triggers.

By default, a pipeline's default branch is the default branch of the repository.

To view and update the Default branch for manual and scheduled builds setting:

  1. Go to the pipeline details for your pipeline, and choose Edit.

    Edit pipeline.

  2. Choose ... and select Triggers.

    Edit triggers.

  3. Select YAML, Get sources, and view the Default branch for manual and scheduled builds setting. If you change it, choose Save or Save & queue to save the change.

    Default branch for manual and scheduled builds setting.

Important

Azure Pipelines loads a maximum of 2000 branches from a repository into the Default branch for manual and scheduled builds. If you don't see your desired branch in the list, type the desired branch name manually.