onnxruntime/tools/ci_build/github/azure-pipelines/templates/component-governance-component-detection-steps.yml
Jian Chen d1e66f0446
Increase NPM ComponentDetection.Timeout: 1200 (#20681)
### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2024-05-15 13:41:59 -07:00

29 lines
No EOL
1.6 KiB
YAML

# component detection for component governance checks
parameters:
- name: condition
type: string
default: 'succeeded' # could be 'ci_only', 'always', 'succeeded'
steps:
- ${{ if eq(variables['System.TeamProject'], 'Lotus') }}:
- powershell: |
Remove-Item $(Build.BinariesDirectory)/* -Recurse -Force
displayName: 'Clean up build directory'
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
continueOnError: true
condition:
or(or(and(eq('${{parameters.condition}}', 'ci_only'), and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Scheduled'))),
and(eq('${{parameters.condition}}', 'always'), always())),
and(eq('${{parameters.condition}}', 'succeeded'), succeeded()))
inputs:
# ignore unit tests in emscripten. emscripten unit tests are not used in onnxruntime build
# ignore onnx third_party directory. onnx third_party directory is not responsible for onnxruntime build
# ignore react_native e2e node_modules directory. react_native e2e node_modules directory is generated by react_native e2e tests
# ignore github directory. github directory is used for github actions, not for onnxruntime package
ignoreDirectories:
'$(Build.SourcesDirectory)/cmake/external/emsdk/upstream/emscripten/tests,
$(Build.SourcesDirectory)/cmake/external/onnx/third_party,
$(Build.SourcesDirectory)/js/react_native/e2e/node_modules,
$(Build.SourcesDirectory)/tools/ci_build/github'