diff --git a/eng/common/pipelines/templates/steps/prepare-pipelines.yml b/eng/common/pipelines/templates/steps/prepare-pipelines.yml index a4b300dcaba4..47fc611316d1 100644 --- a/eng/common/pipelines/templates/steps/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/steps/prepare-pipelines.yml @@ -16,7 +16,7 @@ parameters: steps: - template: install-pipeline-generation.yml - + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml # This covers our public repos. - ${{ if not(endsWith(parameters.Repository, '-pr'))}}: - script: > @@ -30,7 +30,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.CIConventionOptions}} @@ -48,7 +48,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.UPConventionOptions}} @@ -66,7 +66,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug ${{parameters.TestsConventionOptions}} @@ -88,7 +88,7 @@ steps: --repository ${{parameters.Repository}} --convention ci --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule @@ -107,7 +107,7 @@ steps: --repository ${{parameters.Repository}} --convention up --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule @@ -126,7 +126,7 @@ steps: --repository ${{parameters.Repository}} --convention tests --agentpool Hosted - --branch refs/heads/master + --branch refs/heads/$(DefaultBranch) --patvar PATVAR --debug --no-schedule