mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
@@ -863,11 +863,17 @@ function Invoke-InitializeContainerStage {
|
||||
|
||||
# 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 = $fallbackSeed
|
||||
}
|
||||
|
||||
# cut down to 32 bits and keep the most varying parts, which are lower bits
|
||||
if ($seed -ge [Int32]::MaxValue) {
|
||||
$seed = [int]($seed -band [int]::MaxValue)
|
||||
}
|
||||
|
||||
Write-Verbose "Seed: $seed" -Verbose
|
||||
|
||||
# Get the latest image matrix JSON for preview
|
||||
|
||||
Reference in New Issue
Block a user