diff --git a/.azure-pipelines/test-docker-sonic-vs-template.yml b/.azure-pipelines/test-docker-sonic-vs-template.yml index fc1527f72c9..83fd36dc09c 100644 --- a/.azure-pipelines/test-docker-sonic-vs-template.yml +++ b/.azure-pipelines/test-docker-sonic-vs-template.yml @@ -97,7 +97,7 @@ jobs: - publish: $(Build.ArtifactStagingDirectory)/gcov_tmp 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)