From 4a681601b24d5dd5215103e0a7ca0c560702c411 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 15 Oct 2020 21:14:27 -0400 Subject: [PATCH] Skip Screenshot on 2nd build attempt --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d3ad7613d..1c3647ab8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -702,7 +702,7 @@ stages: - publish: $(Build.ArtifactStagingDirectory)/screenshots artifact: '$(osName)AutomationScreenshots' displayName: Publish Screenshot Bundle - continueOnError: true + condition: and(succeeded(), eq(variables['System.JobAttempt'], '1')) - task: PublishTestResults@2 inputs: testResultsFormat: 'NUnit'