Skip to content

Commit a93c31e

Browse files
authored
Update dml-vs-2022.yml (#19687)
### Description Fix a build error in "Zip-Nuget-Java-Nodejs Packaging Pipeline" which deletes files too early.
1 parent 913bdc7 commit a93c31e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

tools/ci_build/github/azure-pipelines/nuget/templates/dml-vs-2022.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ stages:
5555
- checkout: self
5656
clean: true
5757
submodules: recursive
58+
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
59+
displayName: 'Clean Agent Directories'
60+
condition: always()
5861

5962
- powershell: |
6063
if($env:TELEMETRYGUID)
@@ -231,14 +234,7 @@ stages:
231234
searchPattern: '**/*.pdb'
232235
symbolServerType: teamServices
233236

234-
- ${{ if eq(parameters['DoCompliance'], 'true') }}:
235-
- template: ../../templates/compliance.yml
236-
parameters :
237-
msbuildPlatform: ${{ parameters.sln_platform }}
238237

239-
- template: ../../templates/component-governance-component-detection-steps.yml
240-
parameters :
241-
condition : 'succeeded'
242238

243239
# Node.js Publish
244240
- ${{ if eq(parameters['DoNodejsPack'], 'true') }}:
@@ -294,6 +290,12 @@ stages:
294290
targetPath: '$(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}'
295291
artifactName: 'drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml'
296292

297-
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
298-
displayName: 'Clean Agent Directories'
299-
condition: always()
293+
294+
- ${{ if eq(parameters['DoCompliance'], 'true') }}:
295+
- template: ../../templates/compliance.yml
296+
parameters :
297+
msbuildPlatform: ${{ parameters.sln_platform }}
298+
299+
- template: ../../templates/component-governance-component-detection-steps.yml
300+
parameters :
301+
condition : 'succeeded'

0 commit comments

Comments
 (0)