Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.66 KB

pipeline-default-branch.md

File metadata and controls

34 lines (22 loc) · 1.66 KB
title description ms.topic ms.author author ms.date monikerRange
Pipeline default branch
Configure a pipeline's default branch
conceptual
sandrica
silviuandrica
02/01/2022
azure-devops || >= azure-devops-2020

The pipeline default branch

[!INCLUDE version-gt-eq-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.

    :::image type="content" source="media/pipeline-triggers/pipeline-edit.png" alt-text="Edit pipeline.":::

  2. Choose ... and select Triggers.

    :::image type="content" source="media/pipeline-triggers/edit-triggers.png" alt-text="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.

    :::image type="content" source="media/pipeline-triggers/default-branch-setting.png" alt-text="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.