Skip to content

Commit fc81eb7

Browse files
Move component governance to build step ti accomodate artifacts publisehd as part of the group (Azure#24323)
1 parent 064ee2d commit fc81eb7

File tree

1 file changed

+6
-7
lines changed
  • eng/pipelines/templates/jobs

1 file changed

+6
-7
lines changed

eng/pipelines/templates/jobs/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ jobs:
111111
parameters:
112112
Artifacts: ${{ parameters.Artifacts }}
113113

114+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
115+
displayName: "Component Detection"
116+
# ComponentGovernance is currently unable to run on pull requests of public projects. Running on
117+
# scheduled builds should be good enough.
118+
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
119+
114120
- job: "Analyze"
115121
condition: and(succeededOrFailed(), ne(variables['Skip.Analyze'], true))
116122
pool:
@@ -163,13 +169,6 @@ jobs:
163169
-SpellCheckPublicApiSurface
164170
pwsh: true
165171
failOnStderr: false
166-
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
167-
displayName: "Component Detection"
168-
# ComponentGovernance is currently unable to run on pull requests of public projects. Running on
169-
# scheduled builds should be good enough.
170-
inputs:
171-
ignoreDirectories: "sdk/storage/Azure.Storage.Common/swagger/Generator"
172-
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
173172
- template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
174173

175174
- template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml

0 commit comments

Comments
 (0)