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. Navigate 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.