Only publish artifacts on failed

This commit is contained in:
Mole
2021-03-23 11:39:13 +01:00
parent 25de77a8be
commit 347ab9ffec

View File

@@ -192,7 +192,7 @@ stages:
# customCommand: 'run test -- --config="viewportHeight=812,viewportWidth=375,screenshotsFolder=cypress/artifacts/mobile/screenshots,videosFolder=cypress/artifacts/mobile/videos,videoUploadOnPasses=false"'
- task: PublishPipelineArtifact@1
displayName: "Publish test artifacts"
condition: always()
condition: failed()
inputs:
targetPath: '$(Build.SourcesDirectory)/src/Umbraco.Tests.AcceptanceTest/cypress/artifacts'
artifact: 'Test artifacts'