Skip to content

Commit

Permalink
Fix build id variable name when selecting CI container (#17279)
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 committed May 6, 2022
1 parent 4c6c4f3 commit 3bff8c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vsts-ci/linux.yml
Expand Up @@ -116,11 +116,13 @@ stages:
clean: true

- pwsh: |
$buildId = $env:BUILD_BUILDID
Write-Verbose "Fall back seed: $buildId" -Verbose
# For PRs set the seed to the PR number so that the image is always the same
$seed = $env:SYSTEM_PULLREQUEST_PULLREQUESTID
if(!$seed) {
# for non-PRs use the integer identifier of the build as the seed.
$seed = $env:SYSTEM_BUILD_BUILDID
$seed = $buildId
}
Write-Verbose "Seed: $seed" -Verbose
Expand Down

0 comments on commit 3bff8c0

Please sign in to comment.