diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 16dcec3201..968a686245 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -138,7 +138,7 @@ extends: -ci name: Test displayName: Test - + # Remove temporary artifacts to avoid finding binskim issues for exes we don't own. - pwsh: | Remove-Item -Path $(Build.SourcesDirectory)/artifacts/tmp -Recurse -Force @@ -186,11 +186,12 @@ extends: name: Test displayName: Tests - - template: /eng/common/templates-official/job/onelocbuild.yml@self - parameters: - GitHubOrg: microsoft - MirrorRepo: testfx - LclSource: lclFilesfromPackage - LclPackageId: 'LCL-JUNO-PROD-TESTFX' + - ${{ if eq(variables['Build.SourceBranchName'], 'main') }}: + - template: /eng/common/templates-official/job/onelocbuild.yml@self + parameters: + GitHubOrg: microsoft + MirrorRepo: testfx + LclSource: lclFilesfromPackage + LclPackageId: 'LCL-JUNO-PROD-TESTFX' - template: eng\common\templates-official\post-build\post-build.yml@self