From 07686d919615d9022674ebd2155c1141081a9d18 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Wed, 15 Jun 2022 14:19:44 +0800 Subject: [PATCH 1/2] [ci] Fix test stage retry failure issue. --- .azure-pipelines/test-docker-sonic-vs-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index fc1527f72c9..7453c132cbb 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -95,7 +95,7 @@ jobs: condition: always() - publish: $(Build.ArtifactStagingDirectory)/gcov_tmp - artifact: ${{ parameters.gcov_artifact_name }} + artifact: ${{ parameters.gcov_artifact_name }}@$(System.JobAttempt) displayName: "Publish gcov output" condition: eq('${{ parameters.archive_gcov }}', true) From dfad13e5f7dc5777ec9c280bd69b42d834107c47 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Wed, 15 Jun 2022 19:08:58 +0800 Subject: [PATCH 2/2] fix --- .azure-pipelines/test-docker-sonic-vs-template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index 7453c132cbb..83fd36dc09c 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -95,9 +95,9 @@ jobs: condition: always() - publish: $(Build.ArtifactStagingDirectory)/gcov_tmp - artifact: ${{ parameters.gcov_artifact_name }}@$(System.JobAttempt) + artifact: ${{ parameters.gcov_artifact_name }} displayName: "Publish gcov output" - condition: eq('${{ parameters.archive_gcov }}', true) + condition: and(succeeded(), eq('${{ parameters.archive_gcov }}', true)) - publish: $(Build.ArtifactStagingDirectory)/ artifact: ${{ parameters.log_artifact_name }}@$(System.JobAttempt)