From 1be50884a0e2011181fb9e6d63b0e5d60305c292 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Wed, 29 Sep 2021 13:32:13 -0700 Subject: [PATCH] Move component governance to build step ti accomodate artifacts publisehd as part of the group --- eng/pipelines/templates/jobs/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 2743c83520fd..ff2bf7c6d83d 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -111,6 +111,12 @@ jobs: parameters: Artifacts: ${{ parameters.Artifacts }} + - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 + displayName: "Component Detection" + # ComponentGovernance is currently unable to run on pull requests of public projects. Running on + # scheduled builds should be good enough. + condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest')) + - job: "Analyze" condition: and(succeededOrFailed(), ne(variables['Skip.Analyze'], true)) pool: @@ -163,13 +169,6 @@ jobs: -SpellCheckPublicApiSurface pwsh: true failOnStderr: false - - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 - displayName: "Component Detection" - # ComponentGovernance is currently unable to run on pull requests of public projects. Running on - # scheduled builds should be good enough. - inputs: - ignoreDirectories: "sdk/storage/Azure.Storage.Common/swagger/Generator" - condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest')) - template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml