From 6eb57302fb2d4e757755a337b8a035e33bac030b Mon Sep 17 00:00:00 2001 From: Zeegaan Date: Mon, 3 Oct 2022 07:38:49 +0200 Subject: [PATCH] Give proper variable name --- build/azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index c66e199029..f3d0ce0c1b 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -474,16 +474,16 @@ stages: targetType: inline script: | $MyVariable = Test-Path -Path $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/results - Write-Host "##vso[task.setvariable variable=myVar;]$MyVariable" + Write-Host "##vso[task.setvariable variable=resultFolderExists;]$MyVariable" - task: CopyFiles@2 displayName: Prepare artifacts - condition: eq(variables.myVar, 'True') + condition: eq(variables.resultFolderExists, 'True') inputs: sourceFolder: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/results/ targetFolder: $(Build.ArtifactStagingDirectory)/playwright - task: PublishPipelineArtifact@1 displayName: "Publish test artifacts" - condition: eq(variables.myVar, 'True') + condition: eq(variables.resultFolderExists, 'True') inputs: targetPath: $(Build.ArtifactStagingDirectory) artifact: 'E2E artifacts - $(Agent.OS) - Attempt #$(System.JobAttempt)'