Skip to content

Commit e5947f5

Browse files
authored
Two improvements in pipelines (#20449)
### 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. -->
1 parent 218b6b0 commit e5947f5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

tools/ci_build/github/azure-pipelines/bigmodels-ci-pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,12 @@ stages:
224224
workingDirectory: $(Build.SourcesDirectory)
225225
226226
# For verification we will check the generated image looks .
227+
# Because the artifact isn't used by other jobs, we set the artifact name to a varabile value.
228+
# So the job can be rerun without the exception that artifact has been published.
227229
- task: PublishPipelineArtifact@0
228-
displayName: 'Publish code coverage report'
230+
displayName: 'Publish Generated Image Artifact'
229231
inputs:
230-
artifactName: "Generated-Image"
232+
artifactName: Generated-Image-$(System.JobAttempt)
231233
targetPath: '$(GenerateImage_DIR)'
232234

233235
- task: Cache@2

tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ stages:
8888
workspace:
8989
clean: all
9090
pool: 'Onnxruntime-Linux-GPU'
91-
91+
variables:
92+
- name: CUDA_VERSION_MAJOR
93+
${{ if eq(parameters.CudaVersion, '11.8') }}:
94+
value: '11'
95+
${{ if eq(parameters.CudaVersion, '12.2') }}:
96+
value: '12'
9297
steps:
9398
- checkout: self # due to checkout multiple repos, the root directory is $(Build.SourcesDirectory)/onnxruntime
9499
submodules: false
@@ -180,4 +185,4 @@ stages:
180185
artifactName: 'onnxruntime-linux-x64-gpu'
181186
- template: ../templates/component-governance-component-detection-steps.yml
182187
parameters:
183-
condition: 'succeeded'
188+
condition: 'succeeded'

0 commit comments

Comments
 (0)