Skip to content

Commit

Permalink
Publish artifacts on success or failure (microsoft#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
thhous-msft authored Feb 9, 2022
1 parent 57b5ef9 commit 0dd4e60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .azure/templates/upload-test-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ steps:
displayName: Publish Test Output
${{ if and(eq(parameters.publishTest, true), not(eq(parameters.platform, 'macos'))) }}:
condition: failed()
${{ if and(eq(parameters.publishTest, true), eq(parameters.platform, 'macos')) }}:
condition: succeededOrFailed()
inputs:
artifactName: ${{ parameters.artifactName }}
pathToPublish: $(Build.ArtifactStagingDirectory)
Expand Down

0 comments on commit 0dd4e60

Please sign in to comment.