Skip to content
Snippets Groups Projects
Verified Commit c8f32a07 authored by Joe Donofry's avatar Joe Donofry
Browse files

Change variable format in bash

parent c1dc1e0f
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ steps:
#overWrite: false # Optional
#flattenFolders: false # Optional
# Create a variable for build success
- bash: ls ${BUILD.ARTIFACTSTAGINGDIRECTORY}
- 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' }
# delete the release if it already exists to avoid an error
- task: GitHubRelease@0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment