Skip to content
代码片段 群组 项目
未验证 提交 6fcebd41 编辑于 作者: Pranav K's avatar Pranav K 提交者: GitHub
浏览文件

Skip component governance (#30125)


* Skip component governance

* Update .azure/pipelines/jobs/default-build.yml

Co-authored-by: default avatarDoug Bunting <6431421+dougbu@users.noreply.github.com>

Co-authored-by: default avatarDoug Bunting <6431421+dougbu@users.noreply.github.com>
上级 26624bab
No related branches found
No related tags found
无相关合并请求
...@@ -249,7 +249,8 @@ jobs: ...@@ -249,7 +249,8 @@ jobs:
condition: always() condition: always()
# Run component detection after all successful Build:* jobs unless overridden e.g. for Alpine build. # Run component detection after all successful Build:* jobs unless overridden e.g. for Alpine build.
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), ne(variables['skipComponentGovernanceDetection'], 'true'), ne(parameters.skipComponentGovernanceDetection, 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}: # Disabled for now because detector limits some error handling to the auto-injected task. Will re-enable once fixed.
- ${{ if and(startsWith(parameters.jobDisplayName, 'Build:'), eq(parameters.agentOs, 'NotARealOperatingSystem'), ne(variables['skipComponentGovernanceDetection'], 'true'), ne(parameters.skipComponentGovernanceDetection, 'true'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: and(succeeded(), ne(variables['CG_RAN'], 'true')) condition: and(succeeded(), ne(variables['CG_RAN'], 'true'))
displayName: 'Component Detection' displayName: 'Component Detection'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册