Skip to content

Commit

Permalink
[ci] Fix PR checker archieve artifacts step (#9357)
Browse files Browse the repository at this point in the history
Why I did it
When a failed job retry. Publish artifact will fail for duplicated name
  • Loading branch information
liushilongbuaa authored Nov 24, 2021
1 parent 79b8ff5 commit 51a0aed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 51a0aed

Please sign in to comment.