From e12929ec31370c72ed7a16f01f1eec93a84c9202 Mon Sep 17 00:00:00 2001 From: Michael Yanni Date: Tue, 19 Mar 2024 14:52:10 -0700 Subject: [PATCH] Allow template to switch to Unofficial when running a pull request. Remove component governance ignore folder parameter. Remove custom build tags. --- .vsts-ci.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 50be90f89..40a268589 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -43,7 +43,10 @@ resources: ref: refs/tags/release extends: - template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + ${{ if notin(variables['Build.Reason'], 'PullRequest') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines parameters: containers: alpine319WithNode: @@ -67,15 +70,6 @@ extends: name: $(DncEngInternalBuildPool) image: 1es-windows-2022 os: windows - # https://docs.opensource.microsoft.com/tools/cg/component-detection/variables/ - componentgovernance: - # This should be uncommented when a fix is available. - # See: https://dev.azure.com/mseng/1ES/_workitems/edit/2159448 - # failOnAlert: false - # This should be removed when failOnAlert works properly. - ignoreDirectories: '.packages' - customBuildTags: - - ES365AIMigrationTooling stages: - stage: Build jobs: