From ba2b4c1c93bd9178f099e28c2aebe250e414ff60 Mon Sep 17 00:00:00 2001 From: coloursofnoise Date: Wed, 10 Nov 2021 13:07:46 -0800 Subject: [PATCH] Attempt to reference triggering pipeline runid --- azure-pipelines-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index 1792c17ba..8fc8833cb 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -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/