27 lines
893 B
YAML
27 lines
893 B
YAML
|
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: |
|
||
|
. "$(Build.SourcesDirectory)/eng/common/tools.ps1"
|
||
|
|
||
|
$BarId = Get-Content "$(Build.StagingDirectory)/ReleaseConfigs/BARBuildId.txt"
|
||
|
Write-PipelineSetVariable -Name 'BARBuildId' -Value $BarId
|
||
|
|
||
|
$Channels = ""
|
||
|
Get-Content "$(Build.StagingDirectory)/ReleaseConfigs/Channels.txt" | ForEach-Object { $Channels += "$_ ," }
|
||
|
Write-PipelineSetVariable -Name 'InitialChannels' -Value "$Channels"
|