diff options
author | dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> | 2019-06-20 18:47:15 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-20 18:47:15 -0700 |
commit | 61dfc51ae30a9a2dbdb637fa200af85ea0435dc5 (patch) | |
tree | 409790f6ee25838a1deeb16168d53fd277a154b0 /eng/common/templates/post-build/setup-maestro-vars.yml | |
parent | bb268ff9b4de85439b464eca7a8140485ebf47b6 (diff) | |
download | coreclr-61dfc51ae30a9a2dbdb637fa200af85ea0435dc5.tar.gz coreclr-61dfc51ae30a9a2dbdb637fa200af85ea0435dc5.tar.bz2 coreclr-61dfc51ae30a9a2dbdb637fa200af85ea0435dc5.zip |
[master] Update dependencies from dotnet/arcade (#25253)
* Update dependencies from https://github.com/dotnet/arcade build 20190619.25
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19319.25
- Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19319.25
- Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19319.25
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19319.25
Diffstat (limited to 'eng/common/templates/post-build/setup-maestro-vars.yml')
-rw-r--r-- | eng/common/templates/post-build/setup-maestro-vars.yml | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/eng/common/templates/post-build/setup-maestro-vars.yml b/eng/common/templates/post-build/setup-maestro-vars.yml index b40e0260a3..9de585a94a 100644 --- a/eng/common/templates/post-build/setup-maestro-vars.yml +++ b/eng/common/templates/post-build/setup-maestro-vars.yml @@ -16,11 +16,23 @@ jobs: 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" + # This is needed to make Write-PipelineSetVariable works in this context + if ($env:BUILD_BUILDNUMBER -ne "" -and $env:BUILD_BUILDNUMBER -ne $null) { + $ci = $true + + . "$(Build.SourcesDirectory)/eng/common/tools.ps1" + + $BarId = Get-Content "$(Build.StagingDirectory)/ReleaseConfigs/BARBuildId.txt" + Write-PipelineSetVariable -Name 'BARBuildId' -Value $BarId + + Write-Host "Asked Write-PipelineSetVariable to create BARBuildId with value '$BarId'" + + $Channels = "" + Get-Content "$(Build.StagingDirectory)/ReleaseConfigs/Channels.txt" | ForEach-Object { $Channels += "$_ ," } + Write-PipelineSetVariable -Name 'InitialChannels' -Value "$Channels" + + Write-Host "Asked Write-PipelineSetVariable to create InitialChannels with value '$Channels'" + } + else { + Write-Host "This step can only be run in an Azure DevOps CI environment." + } |