parameters: parentJobs: [] pool: 'vs2017-win2016' jobName: 'xunit_verify' jobs: - job: verify_xunit displayName: Verify xUnit Results pool: vmImage: ${{ parameters.pool }} dependsOn: ${{ parameters.parentJobs }} steps: - task: DownloadBuildArtifacts@0 displayName: 'Download build artifacts' inputs: downloadType: specific itemPattern: | xunit/**/* downloadPath: '$(System.ArtifactsDirectory)' - powershell: | dir "$(System.ArtifactsDirectory)\*" -Recurse displayName: 'Capture artifacts directory' continueOnError: true - powershell: | Import-Module .\tools\ci.psm1 $xUnitTestResultsFile = "$(System.ArtifactsDirectory)\xunit\xUnitTestResults.xml" Test-XUnitTestResults -TestResultsFile $xUnitTestResultsFile displayName: Test condition: succeeded()