2019-06-13 12:10:50 +00:00
|
|
|
jobs:
|
|
|
|
- job: setupMaestroVars
|
|
|
|
displayName: Setup Maestro Vars
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
steps:
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
|
|
displayName: Download Release Configs
|
|
|
|
inputs:
|
|
|
|
buildType: current
|
|
|
|
artifactName: ReleaseConfigs
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
name: setReleaseVars
|
|
|
|
displayName: Set Release Configs Vars
|
|
|
|
inputs:
|
|
|
|
targetType: inline
|
|
|
|
script: |
|
2019-06-19 21:36:02 +00:00
|
|
|
# This is needed to make Write-PipelineSetVariable works in this context
|
2019-06-22 12:29:08 +00:00
|
|
|
$ci = $true
|
2019-06-19 21:36:02 +00:00
|
|
|
|
2019-06-22 12:29:08 +00:00
|
|
|
. "$(Build.SourcesDirectory)/eng/common/tools.ps1"
|
2019-06-19 21:36:02 +00:00
|
|
|
|
2019-06-22 12:29:08 +00:00
|
|
|
$Content = Get-Content "$(Build.StagingDirectory)/ReleaseConfigs/ReleaseConfigs.txt"
|
2019-06-19 21:36:02 +00:00
|
|
|
|
2019-06-22 12:29:08 +00:00
|
|
|
$BarId = $Content | Select -Index 0
|
2019-06-19 21:36:02 +00:00
|
|
|
|
2019-06-22 12:29:08 +00:00
|
|
|
$Channels = ""
|
|
|
|
$Content | Select -Index 1 | ForEach-Object { $Channels += "$_ ," }
|
|
|
|
|
2019-06-26 20:33:53 +00:00
|
|
|
$IsStableBuild = $Content | Select -Index 2
|
2019-06-22 12:29:08 +00:00
|
|
|
|
|
|
|
Write-PipelineSetVariable -Name 'BARBuildId' -Value $BarId
|
|
|
|
Write-PipelineSetVariable -Name 'InitialChannels' -Value "$Channels"
|
|
|
|
Write-PipelineSetVariable -Name 'IsStableBuild' -Value $IsStableBuild
|