Skip to content

Commit

Permalink
[ci] Don't publish gcov artifact when test failed. (sonic-net#2331)
Browse files Browse the repository at this point in the history
* [ci] Fix test stage retry failure issue.
  • Loading branch information
liushilongbuaa authored Jun 16, 2022
1 parent 4374348 commit 9da86f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .azure-pipelines/test-docker-sonic-vs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9da86f3

Please sign in to comment.