Skip to content

Commit 9da86f3

Browse files
[ci] Don't publish gcov artifact when test failed. (sonic-net#2331)
* [ci] Fix test stage retry failure issue.
1 parent 4374348 commit 9da86f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.azure-pipelines/test-docker-sonic-vs-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- publish: $(Build.ArtifactStagingDirectory)/gcov_tmp
9898
artifact: ${{ parameters.gcov_artifact_name }}
9999
displayName: "Publish gcov output"
100-
condition: eq('${{ parameters.archive_gcov }}', true)
100+
condition: and(succeeded(), eq('${{ parameters.archive_gcov }}', true))
101101

102102
- publish: $(Build.ArtifactStagingDirectory)/
103103
artifact: ${{ parameters.log_artifact_name }}@$(System.JobAttempt)

0 commit comments

Comments
 (0)