Merged PR 28440: [backport/v7.4.0] Fix release build by making the internal SDK parameter optional (#20658)

Fix release build by making the internal SDK parameter optional (#20658)
This commit is contained in:
Travis Plunk
2023-11-14 16:17:20 -08:00
committed by Travis Plunk
parent b619000e10
commit 66a70746de
3 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -19,8 +19,9 @@ $script:Options = $null
$dotnetMetadata = Get-Content $PSScriptRoot/DotnetRuntimeMetadata.json | ConvertFrom-Json
$dotnetCLIChannel = $dotnetMetadata.Sdk.Channel
$dotnetCLIQuality = $dotnetMetadata.Sdk.Quality
$dotnetAzureFeed = $env:__DONET_RUNTIME_FEED ?? $dotnetMetadata.Sdk.azureFeed
$dotnetAzureFeedSecret = $env:__DONET_RUNTIME_FEED_KEY
# __DOTNET_RUNTIME_FEED and __DOTNET_RUNTIME_FEED_KEY are private variables used in release builds
$dotnetAzureFeed = if ([string]::IsNullOrWhiteSpace($env:__DOTNET_RUNTIME_FEED)) { $dotnetMetadata.Sdk.azureFeed } else { $env:__DOTNET_RUNTIME_FEED }
$dotnetAzureFeedSecret = $env:__DOTNET_RUNTIME_FEED_KEY
$dotnetSDKVersionOveride = $dotnetMetadata.Sdk.sdkImageOverride
$dotnetCLIRequiredVersion = $(Get-Content $PSScriptRoot/global.json | ConvertFrom-Json).Sdk.Version
@@ -23,6 +23,7 @@ parameters:
- name: InternalSDKBlobURL
displayName: URL to the blob havibg internal .NET SDK
type: string
default: ' '
variables:
- name: DOTNET_CLI_TELEMETRY_OPTOUT
@@ -21,6 +21,7 @@ parameters:
- name: InternalSDKBlobURL
displayName: URL to the blob having internal .NET SDK
type: string
default: ' '
resources:
repositories: