Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions eng/pipelines/runtime-diagnostics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,20 @@ extends:
unpackFolder: $(Build.SourcesDirectory)/artifacts/runtime
displayName: 'Runtime Build Artifacts'
postBuildSteps:
# Copy test results to staging directory (preserves encoding, isolates from source tree).
- task: CopyFiles@2
displayName: 'Gather Test Results'
inputs:
sourceFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
contents: '**/*.xml'
targetFolder: '$(Build.StagingDirectory)/TestResults'
continueOnError: true
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFormat: xUnit
testResultsFiles: '**/*.xml'
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
searchFolder: '$(Build.StagingDirectory)/TestResults'
testRunTitle: 'Tests $(_PhaseName)'
failTaskOnFailedTests: true
publishRunAttachments: true
Expand Down Expand Up @@ -143,11 +152,20 @@ extends:
unpackFolder: $(Build.SourcesDirectory)/artifacts/runtime
displayName: 'Runtime Build Artifacts'
postBuildSteps:
# Copy test results to staging directory (preserves encoding, isolates from source tree).
- task: CopyFiles@2
displayName: 'Gather Test Results'
inputs:
sourceFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
contents: '**/*.xml'
targetFolder: '$(Build.StagingDirectory)/TestResults'
continueOnError: true
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFormat: xUnit
testResultsFiles: '**/*.xml'
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
searchFolder: '$(Build.StagingDirectory)/TestResults'
testRunTitle: 'Tests $(_PhaseName)'
failTaskOnFailedTests: true
publishRunAttachments: true
Expand Down
Loading