[ci] Fix PR checker archieve artifacts step (#9357)
Why I did it When a failed job retry. Publish artifact will fail for duplicated name
This commit is contained in:
parent
79b8ff52b0
commit
51a0aed02a
@ -52,9 +52,12 @@ jobs:
|
||||
displayName: Copy Artifacts
|
||||
condition: always()
|
||||
- publish: $(Build.ArtifactStagingDirectory)
|
||||
condition: always()
|
||||
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)'
|
||||
displayName: "Archive sonic image"
|
||||
- publish: $(Build.ArtifactStagingDirectory)
|
||||
condition: failed()
|
||||
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)$(System.JobAttempt)'
|
||||
displayName: "Archive failed sonic image"
|
||||
- ${{ parameters.postSteps }}
|
||||
- template: cleanup.yml
|
||||
jobGroups: ${{ parameters.jobGroups }}
|
||||
|
Reference in New Issue
Block a user