From 6e49d339453afbdc37f4c167bad3ae99749b6268 Mon Sep 17 00:00:00 2001 From: Peter Ombwa Date: Wed, 11 May 2022 14:11:30 -0700 Subject: [PATCH] Rename master branch to main. --- .../common-templates/security-prechecks-template.yml | 2 +- .azure-pipelines/integrated-pipeline.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/common-templates/security-prechecks-template.yml b/.azure-pipelines/common-templates/security-prechecks-template.yml index e2e68ac3ff5..71cd9b4cdc8 100644 --- a/.azure-pipelines/common-templates/security-prechecks-template.yml +++ b/.azure-pipelines/common-templates/security-prechecks-template.yml @@ -11,7 +11,7 @@ steps: - task: PoliCheck@1 displayName: 'Run PoliCheck' - condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false)) + condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/main'), false)) inputs: targetType: F SOMEnabled: true diff --git a/.azure-pipelines/integrated-pipeline.yml b/.azure-pipelines/integrated-pipeline.yml index 61ca58d64ee..d2137496d51 100644 --- a/.azure-pipelines/integrated-pipeline.yml +++ b/.azure-pipelines/integrated-pipeline.yml @@ -37,7 +37,7 @@ pool: $(BUILDAGENT) trigger: branches: include: - - master + - main - dev - releases/* - bugfixes/* @@ -62,7 +62,7 @@ stages: targetType: 'inline' script: | printenv - if ('$(Build.SourceBranchName)' -eq "master"){ + if ('$(Build.SourceBranchName)' -eq "main"){ Write-Host "##vso[task.setvariable variable=BUILDNUMBER;isOutput=true]-1" } Write-Host $(BUILDNUMBER)