@@ -55,6 +55,9 @@ stages:
55
55
- checkout : self
56
56
clean : true
57
57
submodules : recursive
58
+ - task : mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3
59
+ displayName : ' Clean Agent Directories'
60
+ condition : always()
58
61
59
62
- powershell : |
60
63
if($env:TELEMETRYGUID)
@@ -231,14 +234,7 @@ stages:
231
234
searchPattern : ' **/*.pdb'
232
235
symbolServerType : teamServices
233
236
234
- - ${{ if eq(parameters['DoCompliance'], 'true') }} :
235
- - template : ../../templates/compliance.yml
236
- parameters :
237
- msbuildPlatform : ${{ parameters.sln_platform }}
238
237
239
- - template : ../../templates/component-governance-component-detection-steps.yml
240
- parameters :
241
- condition : ' succeeded'
242
238
243
239
# Node.js Publish
244
240
- ${{ if eq(parameters['DoNodejsPack'], 'true') }} :
@@ -294,6 +290,12 @@ stages:
294
290
targetPath : ' $(Build.SourcesDirectory)\js\node\bin\napi-v3\win32\${{ parameters.sln_platform }}'
295
291
artifactName : ' drop-onnxruntime-nodejs-win-${{ parameters.sln_platform }}-dml'
296
292
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