Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 2.25 KB

pipeline-default-branch.md

File metadata and controls

43 lines (29 loc) · 2.25 KB
title description ms.topic ms.author author ms.date monikerRange
Pipeline default branch
See how to configure a pipeline's default branch in Azure Pipelines.
conceptual
sandrica
silviuandrica
08/06/2024
azure-devops || >= azure-devops-2020

Pipeline default branch

[!INCLUDE version-gt-eq-2020]

This article describes how to view and edit a pipeline's default branch. 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.

View and update the default branch

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

  1. In your Azure DevOps project, select your pipeline from the Pipelines list.

  2. On the pipeline page, select Edit.

    :::image type="content" source="media/pipeline-triggers/pipeline-edit.png" alt-text="Screenshot that shows selecting Edit for a pipeline.":::

  3. In the More actions menu, select Triggers.

    :::image type="content" source="media/pipeline-triggers/edit-triggers.png" alt-text="Screenshot that shows selecting Triggers for edit.":::

  4. Select YAML > Get sources, and view the Default branch for manual and scheduled builds setting.

  5. To change the branch, select the Browse icon next to the branch name, select a different branch name, and select Select. Then select Save or Save & queue on the pipeline page.

    :::image type="content" source="media/pipeline-triggers/default-branch-setting.png" alt-text="Screenshot that shows the Default branch for manual and scheduled builds setting.":::

Important

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

Related content