Skip to content

Commit

Permalink
Fixing issue where unzip package froim 'onnxruntime-win-x64-gpu' was …
Browse files Browse the repository at this point in the history
…also uploaded. (#19096)

### Description
Fixing issue where unzip package froim 'onnxruntime-win-x64-gpu' was
also uploaded.


For example,
https://aiinfra.visualstudio.com/Lotus/_build/results?buildId=396440&view=artifacts&pathAsName=false&type=publishedArtifacts
  • Loading branch information
jchen351 authored and mszhanyi committed Jan 15, 2024
1 parent 9acd982 commit 09f4104
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,9 @@ stages:
displayName: 'Publish Pipeline Combined GPU Package Artifact'
inputs:
artifactName: 'onnxruntime-win-x64-gpu'
targetPath: '$(Build.ArtifactStagingDirectory)'
targetPath: '$(Build.ArtifactStagingDirectory)/onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip'


- template: templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,24 @@ stages:
filename: $(Build.SourcesDirectory)\onnxruntime-inference-examples\c_cxx\squeezenet\run_capi_application.bat
arguments: $(Build.SourcesDirectory)\onnxruntime $(Build.ArtifactStagingDirectory)\onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip $(Build.SourcesDirectory)\onnxruntime-inference-examples\c_cxx\squeezenet
workingFolder: '$(Build.ArtifactStagingDirectory)'
- script: |
dir
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'List ArtifactStagingDirectory before delete'
- task: DeleteFiles@1
displayName: 'Clean up none zip files from ArtifactStagingDirectory'
inputs:
SourceFolder: $(Build.ArtifactStagingDirectory)
Contents: '*/'

- script: |
dir
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'List ArtifactStagingDirectory after delete'
- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Combined GPU Package Artifact'
inputs:
artifactName: 'onnxruntime-win-x64-gpu'
targetPath: '$(Build.ArtifactStagingDirectory)'
targetPath: '$(Build.ArtifactStagingDirectory)/onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip'

0 comments on commit 09f4104

Please sign in to comment.