Skip to content

Commit 3bff8c0

Browse files
authored
Fix build id variable name when selecting CI container (PowerShell#17279)
1 parent 4c6c4f3 commit 3bff8c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vsts-ci/linux.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ stages:
116116
clean: true
117117

118118
- pwsh: |
119+
$buildId = $env:BUILD_BUILDID
120+
Write-Verbose "Fall back seed: $buildId" -Verbose
119121
# For PRs set the seed to the PR number so that the image is always the same
120122
$seed = $env:SYSTEM_PULLREQUEST_PULLREQUESTID
121123
if(!$seed) {
122124
# for non-PRs use the integer identifier of the build as the seed.
123-
$seed = $env:SYSTEM_BUILD_BUILDID
125+
$seed = $buildId
124126
}
125127
Write-Verbose "Seed: $seed" -Verbose
126128

0 commit comments

Comments
 (0)