From 4d17c077e5f3c6e52789dfaf258e482f084e8256 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Sat, 18 May 2019 15:35:10 -0400 Subject: [PATCH] Update powershell script --- .ci/azure-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml index 91b21d47..561d4e4d 100644 --- a/.ci/azure-build.yml +++ b/.ci/azure-build.yml @@ -31,7 +31,9 @@ steps: - bash: ls ${ARTIFACT_STAGING_DIRECTORY} env: ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) -- pwsh: if( (Get-ChildItem $(Build.ArtifactStagingDirectory) | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } +- pwsh: if( (Get-ChildItem $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } + env: + ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)) # delete the release if it already exists to avoid an error - task: GitHubRelease@0 condition: and(succeeded(), eq(variables['buildSuccess'], 'true') )