task: Bash@3
displayName: 'Fail build if no test run'
inputs:
targetType: 'inline'
script: if [[ ! -d "$(Build.ArtifactStagingDirectory)/results/jest-junit-report" ]]; then exit 1; fi
task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
searchFolder: '$(Build.ArtifactStagingDirectory)/results/jest-junit-report'
task: Genetec.publish-test-result-screenshot.pipeline-extension.PublishTestResultScreenshot@0
displayName: 'Publish test result screenshots'
inputs:
organization: myorg
screenshotFolder: '$(Build.ArtifactStagingDirectory)/results/screenshots'
Closing issue because the extension is being deprecated and will no longer be maintained. An alternative solution is to use the Publish Test Result task which now supports
file attachments.
Agent pool: [Private pool] Agent specification: [ubuntu] Context: [Web] Test result format: [jUnit]
Describe the bug Sometimes task fails with the error (rarely reproduced):
[error]read ECONNRESET
To Reproduce Steps to reproduce the behavior:
Expected behavior No error occurs.