Skip to content

Commit

Permalink
Update dml-vs-2022.yml (microsoft#19687)
Browse files Browse the repository at this point in the history
### Description
Fix a build error in "Zip-Nuget-Java-Nodejs Packaging Pipeline" which
deletes files too early.
  • Loading branch information
snnn authored Feb 28, 2024
1 parent 913bdc7 commit a93c31e
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ stages:
- checkout: self
clean: true
submodules: recursive
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: 'Clean Agent Directories'
condition: always()

- powershell: |
if($env:TELEMETRYGUID)
Expand Down Expand Up @@ -231,14 +234,7 @@ 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') }}:
Expand Down Expand Up @@ -294,6 +290,12 @@ stages:
targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}'
artifactName: 'drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml'

- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
displayName: 'Clean Agent Directories'
condition: always()

- ${{ 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'

0 comments on commit a93c31e

Please sign in to comment.