Skip to content

Commit

Permalink
Two improvements in pipelines (#20449)
Browse files Browse the repository at this point in the history
### Description
1. Update the image name to avoid docker image wouldn't be overwrite.
there was an mistake that variables.CUDA_VERSION_MAJOR is always empty

https://github.com/microsoft/onnxruntime/blob/14fcf0a52d61e6015f288cf70025ad62dec7ac85/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml#L120
3. set one artifact name as variable to make the job rerunnable



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
  • Loading branch information
mszhanyi authored Apr 25, 2024
1 parent 218b6b0 commit e5947f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ stages:
workingDirectory: $(Build.SourcesDirectory)
# For verification we will check the generated image looks .
# Because the artifact isn't used by other jobs, we set the artifact name to a varabile value.
# So the job can be rerun without the exception that artifact has been published.
- task: PublishPipelineArtifact@0
displayName: 'Publish code coverage report'
displayName: 'Publish Generated Image Artifact'
inputs:
artifactName: "Generated-Image"
artifactName: Generated-Image-$(System.JobAttempt)
targetPath: '$(GenerateImage_DIR)'

- task: Cache@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ stages:
workspace:
clean: all
pool: 'Onnxruntime-Linux-GPU'

variables:
- name: CUDA_VERSION_MAJOR
${{ if eq(parameters.CudaVersion, '11.8') }}:
value: '11'
${{ if eq(parameters.CudaVersion, '12.2') }}:
value: '12'
steps:
- checkout: self # due to checkout multiple repos, the root directory is $(Build.SourcesDirectory)/onnxruntime
submodules: false
Expand Down Expand Up @@ -180,4 +185,4 @@ stages:
artifactName: 'onnxruntime-linux-x64-gpu'
- template: ../templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
condition: 'succeeded'

0 comments on commit e5947f5

Please sign in to comment.