Skip to content

Commit 0610b1a

Browse files
Pipelines: Adds main alongside master in CI trigger filters
Adds 'main' to the trigger/schedule branch filters of every actively- triggered Azure Pipelines YAML, alongside the existing 'master' entry. Pipeline branch filters do not follow GitHub's branch-rename redirects, so this transitional change ensures CI keeps firing on both names across the cutover from master to main. Files: - azure-pipelines.yml (PR trigger) - azure-pipelines-functional.yml (PR trigger) - azure-pipelines-cron.yml (schedule) - azure-pipelines-nightly.yml (schedule) - azure-pipelines-rolling.yml (two schedules) Pipelines using 'trigger: none' (official, encryption-official, encryption-custom-official, faultinjection, msdata-direct, msdata-aot, ctl-publishing) configure their branches in the Azure DevOps UI and are updated separately as part of the cutover. A follow-up PR drops 'master' from these filters once 'main' is verified. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dd06aae commit 0610b1a

5 files changed

Lines changed: 6 additions & 0 deletions

azure-pipelines-cron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schedules:
88
displayName: Cosmos Cron
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # Run always irrespective of changes
1314

azure-pipelines-functional.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ trigger: none
44
pr:
55
branches:
66
include:
7+
- main
78
- master
89
- releases/*
910
paths:

azure-pipelines-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schedules:
88
displayName: Cosmos Nightly
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1314

azure-pipelines-rolling.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ schedules:
88
displayName: Cosmos Weekly Rolling
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1314
- cron: "0 0/2 * * 0,6" # cron syntax https://learn.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers?view=azure-devops&tabs=yaml#cron-syntax
1415
displayName: Cosmos Weekly Rolling
1516
branches:
1617
include:
18+
- main
1719
- master
1820
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1921

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ trigger: none
44
pr:
55
branches:
66
include:
7+
- main
78
- master
89
- releases/*
910
paths:

0 commit comments

Comments
 (0)