From 347ab9ffec4ff027807190caedbf9cb01c9e79b8 Mon Sep 17 00:00:00 2001 From: Mole Date: Tue, 23 Mar 2021 11:39:13 +0100 Subject: [PATCH] Only publish artifacts on failed --- build/azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 25967e1c23..995ce3bd1c 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -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'