Skip to content

Commit a7fd82a

Browse files
Sync eng/common directory with azure-sdk-tools for PR 1572 (Azure#21037)
* Update prepare pipelines template. * Update prepare-pipelines as well. * Remove default line. Co-authored-by: Mitch Denny <midenn@microsoft.com>
1 parent 3106c8a commit a7fd82a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eng/common/pipelines/templates/steps/prepare-pipelines.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ parameters:
1616

1717
steps:
1818
- template: install-pipeline-generation.yml
19-
19+
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
2020
# This covers our public repos.
2121
- ${{ if not(endsWith(parameters.Repository, '-pr'))}}:
2222
- script: >
@@ -30,7 +30,7 @@ steps:
3030
--repository ${{parameters.Repository}}
3131
--convention ci
3232
--agentpool Hosted
33-
--branch refs/heads/master
33+
--branch refs/heads/$(DefaultBranch)
3434
--patvar PATVAR
3535
--debug
3636
${{parameters.CIConventionOptions}}
@@ -48,7 +48,7 @@ steps:
4848
--repository ${{parameters.Repository}}
4949
--convention up
5050
--agentpool Hosted
51-
--branch refs/heads/master
51+
--branch refs/heads/$(DefaultBranch)
5252
--patvar PATVAR
5353
--debug
5454
${{parameters.UPConventionOptions}}
@@ -66,7 +66,7 @@ steps:
6666
--repository ${{parameters.Repository}}
6767
--convention tests
6868
--agentpool Hosted
69-
--branch refs/heads/master
69+
--branch refs/heads/$(DefaultBranch)
7070
--patvar PATVAR
7171
--debug
7272
${{parameters.TestsConventionOptions}}
@@ -88,7 +88,7 @@ steps:
8888
--repository ${{parameters.Repository}}
8989
--convention ci
9090
--agentpool Hosted
91-
--branch refs/heads/master
91+
--branch refs/heads/$(DefaultBranch)
9292
--patvar PATVAR
9393
--debug
9494
--no-schedule
@@ -107,7 +107,7 @@ steps:
107107
--repository ${{parameters.Repository}}
108108
--convention up
109109
--agentpool Hosted
110-
--branch refs/heads/master
110+
--branch refs/heads/$(DefaultBranch)
111111
--patvar PATVAR
112112
--debug
113113
--no-schedule
@@ -126,7 +126,7 @@ steps:
126126
--repository ${{parameters.Repository}}
127127
--convention tests
128128
--agentpool Hosted
129-
--branch refs/heads/master
129+
--branch refs/heads/$(DefaultBranch)
130130
--patvar PATVAR
131131
--debug
132132
--no-schedule

0 commit comments

Comments
 (0)