In my build pipeline, I use a value of $(Build.BuildNumber)
variable as an image tag for docker images and then push images to ACR with these tags:
$ImageTagVar = $(Build.BuildNumber)
Write-Host "Set environment variable to $ImageTagVar"
Write-Host "##vso[task.setvariable variable=ImageTag]$ImageTagVar"
"##vso[task.setvariable variable=ImageTag]$ImageTagVar"
Now I need to get the value of $(ImageTag)
variable (or $(Build.BuildNumber)
) from build pipeline into release pipeline. How this can be done?