Skip to content

Commit

Permalink
[ci] Publish logs when building image job is canceled by timeout. (so…
Browse files Browse the repository at this point in the history
  • Loading branch information
liushilongbuaa authored and mssonicbld committed Sep 4, 2023
1 parent 5b6a935 commit fbbb85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)'
displayName: "Archive sonic image"
- publish: $(Build.ArtifactStagingDirectory)
condition: failed()
condition: or(failed(), canceled())
artifact: 'sonic-buildimage.$(GROUP_NAME)$(GROUP_EXTNAME)$(System.JobAttempt)'
displayName: "Archive failed sonic image"
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
Expand Down

0 comments on commit fbbb85a

Please sign in to comment.