From fbbb85a117c9f99e8604fa26dc2e00071e753de5 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Mon, 30 May 2022 16:02:27 +0800 Subject: [PATCH] [ci] Publish logs when building image job is canceled by timeout. (#10919) --- .azure-pipelines/azure-pipelines-image-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-image-template.yml b/.azure-pipelines/azure-pipelines-image-template.yml index bcd377973d53..0e465f3cbbbd 100644 --- a/.azure-pipelines/azure-pipelines-image-template.yml +++ b/.azure-pipelines/azure-pipelines-image-template.yml @@ -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') }}: