Skip to content

Commit

Permalink
Attempt to reference triggering pipeline runid
Browse files Browse the repository at this point in the history
  • Loading branch information
coloursofnoise committed Nov 10, 2021
1 parent 7b1105b commit ba2b4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:

# Define build_number variable and zip build artifacts
- script: |
declare -i BUILD_NUMBER=$(Build.BuildId)+$(Build.BuildIdOffset)
declare -i BUILD_NUMBER=$(RESOURCES_PIPELINE_build_RUNID)+$(Build.BuildIdOffset)
echo "##vso[task.setvariable variable=build_number]$BUILD_NUMBER"
zip -9r $(Build.ArtifactStagingDirectory)/main.zip $(Build.ArtifactStagingDirectory)/main/
Expand Down

0 comments on commit ba2b4c1

Please sign in to comment.