[interp] fix code length for JitInfo (#17538)
[mono-project.git] / eng / common / post-build / setup-maestro-vars.ps1
blobd7f64dc63cbc9032897667ac7832914c87e46387
1 param(
2 [Parameter(Mandatory=$true)][string] $ReleaseConfigsPath # Full path to ReleaseConfigs.txt asset
5 . $PSScriptRoot\post-build-utils.ps1
7 try {
8 $Content = Get-Content $ReleaseConfigsPath
10 $BarId = $Content | Select -Index 0
12 $Channels = ""
13 $Content | Select -Index 1 | ForEach-Object { $Channels += "$_ ," }
15 $IsStableBuild = $Content | Select -Index 2
17 Write-PipelineSetVariable -Name 'BARBuildId' -Value $BarId
18 Write-PipelineSetVariable -Name 'InitialChannels' -Value "$Channels"
19 Write-PipelineSetVariable -Name 'IsStableBuild' -Value $IsStableBuild
21 catch {
22 Write-Host $_
23 Write-Host $_.Exception
24 Write-Host $_.ScriptStackTrace
25 ExitWithExitCode 1