Skip to content

Commit

Permalink
Publish test results even if build is canceled (#6780)
Browse files Browse the repository at this point in the history
- If build is cancelled due to agent timeout, some tests results may have already been generated and should still be published
  • Loading branch information
mikeharder authored Dec 12, 2019
1 parent 6d443fa commit 1f9dc34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ jobs:
goals: ${{ parameters.TestGoals }}

- task: PublishTestResults@2
condition: succeededOrFailed()
condition: always()
inputs:
mergeTestResults: true
testRunTitle: '$(OSName) on Java $(JavaVersion)'
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
env: ${{ parameters.EnvVars }}

- task: PublishTestResults@2
condition: succeededOrFailed()
condition: always()
inputs:
mergeTestResults: true
testRunTitle: 'Live tests for ${{ parameters.ServiceDirectory }} $(DisplayName)'
Expand Down

0 comments on commit 1f9dc34

Please sign in to comment.