Disable CG task in PR pipelines (#12426)

This commit is contained in:
Changming Sun 2022-08-02 19:01:41 -07:00 committed by GitHub
parent feed5da435
commit 5d610bc8eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 29 deletions

View file

@ -11,6 +11,8 @@ jobs:
timeoutInMinutes: 120
workspace:
clean: all
variables:
skipComponentGovernanceDetection: true
pool: Linux-CPU-2019
steps:
- checkout: self
@ -144,10 +146,6 @@ jobs:
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()
- template: templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: 'Clean Agent Directories'
condition: always()

View file

@ -9,6 +9,8 @@ resources:
jobs:
- job: Linux_py_Wheels
timeoutInMinutes: 180
variables:
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: Linux-CPU-2019
@ -57,10 +59,6 @@ jobs:
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()
- template: templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: 'Clean Agent Directories'
condition: always()

View file

@ -9,6 +9,8 @@ resources:
jobs:
- job: Linux_Build
timeoutInMinutes: 120
variables:
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: Linux-CPU-2019
@ -78,6 +80,8 @@ jobs:
- job: Linux_Test
timeoutInMinutes: 60
variables:
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: Onnxruntime-Linux-GPU-NC6sv3

View file

@ -11,6 +11,7 @@ jobs:
pool: onnxruntime-tensorrt-linuxbuild
variables:
ALLOW_RELEASED_ONNX_OPSET_ONLY: '1'
skipComponentGovernanceDetection: true
timeoutInMinutes: 180
steps:
- checkout: self
@ -57,8 +58,4 @@ jobs:
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()
- template: templates/component-governance-component-detection-steps.yml
parameters :
condition : 'ci_only'
- template: templates/clean-agent-build-directory-step.yml

View file

@ -9,6 +9,8 @@ resources:
jobs:
- job: Linux_Build
timeoutInMinutes: 120
variables:
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: Linux-CPU-2019

View file

@ -26,6 +26,7 @@ jobs:
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
variables:
ALLOW_RELEASED_ONNX_OPSET_ONLY: ${{ parameters.AllowReleasedOpsetOnly }}
skipComponentGovernanceDetection: true
pool: ${{ parameters.AgentPool }}
${{ if ne(parameters.Strategy, '') }}:
strategy:
@ -74,7 +75,4 @@ jobs:
parameters:
DockerImageTag: ${{ parameters.DockerImageTag }}
BuildConfig: ${{ parameters.BuildConfig }}
- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
- template: clean-agent-build-directory-step.yml

View file

@ -43,6 +43,7 @@ jobs:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
setVcvars: true
ALLOW_RELEASED_ONNX_OPSET_ONLY: '0'
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: 'Win-CPU-2019'
@ -233,7 +234,3 @@ jobs:
searchFolder: '$(Build.BinariesDirectory)/${{ parameters.BuildConfig }}'
testRunTitle: 'Unit Test Run'
condition: succeededOrFailed()
- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'

View file

@ -58,7 +58,8 @@ jobs:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
setVcvars: true
ALLOW_RELEASED_ONNX_OPSET_ONLY: '0'
DocUpdateNeeded: ${{ parameters.DocUpdateNeeded }}
DocUpdateNeeded: ${{ parameters.DocUpdateNeeded }}
skipComponentGovernanceDetection: true
workspace:
clean: all
pool: ${{ parameters.MachinePool }}
@ -274,8 +275,4 @@ jobs:
condition: and(failed(), eq(variables['DocUpdateNeeded'], 'true'))
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/docs/ContribOperators.md'
artifactName: 'ContribOperators.md'
- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
artifactName: 'ContribOperators.md'

View file

@ -11,6 +11,7 @@ jobs:
setVcvars: true
BuildConfig: 'RelWithDebInfo'
ALLOW_RELEASED_ONNX_OPSET_ONLY: '1'
skipComponentGovernanceDetection: true
timeoutInMinutes: 150
workspace:
clean: all
@ -82,7 +83,3 @@ jobs:
workingDirectory: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)'
displayName: 'Run tests'
- template: templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'