mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-26 22:35:43 +00:00
Move compliance check before publishing pipeline artifact (#17857)
### Description <!-- Describe your changes. --> ### Motivation and Context Compliance check would fail randomly but the stage couldn't be rerun if the pipeline artifacts are already published. There's the error like `Artifact xxxx already exists`. We had to restart the whole pipeline if there's a random error in compliance check.
This commit is contained in:
parent
74a8acf405
commit
9d07ca3621
1 changed files with 9 additions and 9 deletions
|
|
@ -231,6 +231,15 @@ stages:
|
|||
searchPattern: '**/*.pdb'
|
||||
symbolServerType: teamServices
|
||||
|
||||
- ${{ if eq(parameters['DoCompliance'], 'true') }}:
|
||||
- template: ../../templates/compliance.yml
|
||||
parameters :
|
||||
msbuildPlatform: ${{ parameters.sln_platform }}
|
||||
|
||||
- template: ../../templates/component-governance-component-detection-steps.yml
|
||||
parameters :
|
||||
condition : 'succeeded'
|
||||
|
||||
# Node.js Publish
|
||||
- ${{ if eq(parameters['DoNodejsPack'], 'true') }}:
|
||||
- task: BatchScript@1
|
||||
|
|
@ -285,15 +294,6 @@ stages:
|
|||
targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}'
|
||||
artifactName: 'drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml'
|
||||
|
||||
- ${{ if eq(parameters['DoCompliance'], 'true') }}:
|
||||
- template: ../../templates/compliance.yml
|
||||
parameters :
|
||||
msbuildPlatform: ${{ parameters.sln_platform }}
|
||||
|
||||
- template: ../../templates/component-governance-component-detection-steps.yml
|
||||
parameters :
|
||||
condition : 'succeeded'
|
||||
|
||||
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
|
||||
displayName: 'Clean Agent Directories'
|
||||
condition: always()
|
||||
|
|
|
|||
Loading…
Reference in a new issue