cff0723064
* Update dependencies from https://github.com/dotnet/arcade build 20190725.15 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19375.15 * Update dependencies from https://github.com/dotnet/arcade build 20190726.18 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19376.18
26 lines
714 B
PowerShell
26 lines
714 B
PowerShell
param(
|
|
[Parameter(Mandatory=$true)][string] $ReleaseConfigsPath # Full path to ReleaseConfigs.txt asset
|
|
)
|
|
|
|
. $PSScriptRoot\post-build-utils.ps1
|
|
|
|
try {
|
|
$Content = Get-Content $ReleaseConfigsPath
|
|
|
|
$BarId = $Content | Select -Index 0
|
|
|
|
$Channels = ""
|
|
$Content | Select -Index 1 | ForEach-Object { $Channels += "$_ ," }
|
|
|
|
$IsStableBuild = $Content | Select -Index 2
|
|
|
|
Write-PipelineSetVariable -Name 'BARBuildId' -Value $BarId
|
|
Write-PipelineSetVariable -Name 'InitialChannels' -Value "$Channels"
|
|
Write-PipelineSetVariable -Name 'IsStableBuild' -Value $IsStableBuild
|
|
}
|
|
catch {
|
|
Write-Host $_
|
|
Write-Host $_.Exception
|
|
Write-Host $_.ScriptStackTrace
|
|
ExitWithExitCode 1
|
|
}
|