Skip to content

Commit 341c9a7

Browse files
Fix release build by making the internal SDK parameter optional (#20658)
1 parent 9ff866d commit 341c9a7

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

build.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $dotnetMetadata = Get-Content $PSScriptRoot/DotnetRuntimeMetadata.json | Convert
2020
$dotnetCLIChannel = $dotnetMetadata.Sdk.Channel
2121
$dotnetCLIQuality = $dotnetMetadata.Sdk.Quality
2222
# __DOTNET_RUNTIME_FEED and __DOTNET_RUNTIME_FEED_KEY are private variables used in release builds
23-
$dotnetAzureFeed = if (-not $env:__DOTNET_RUNTIME_FEED ) { $dotnetMetadata.Sdk.azureFeed } else { $env:__DOTNET_RUNTIME_FEED }
23+
$dotnetAzureFeed = if ([string]::IsNullOrWhiteSpace($env:__DOTNET_RUNTIME_FEED)) { $dotnetMetadata.Sdk.azureFeed } else { $env:__DOTNET_RUNTIME_FEED }
2424
$dotnetAzureFeedSecret = $env:__DOTNET_RUNTIME_FEED_KEY
2525
$dotnetSDKVersionOveride = $dotnetMetadata.Sdk.sdkImageOverride
2626
$dotnetCLIRequiredVersion = $(Get-Content $PSScriptRoot/global.json | ConvertFrom-Json).Sdk.Version

tools/releaseBuild/azureDevOps/compliance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ parameters:
2323
- name: InternalSDKBlobURL
2424
displayName: URL to the blob havibg internal .NET SDK
2525
type: string
26+
default: ' '
2627

2728
variables:
2829
- name: DOTNET_CLI_TELEMETRY_OPTOUT

tools/releaseBuild/azureDevOps/releaseBuild.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ parameters:
2121
- name: InternalSDKBlobURL
2222
displayName: URL to the blob having internal .NET SDK
2323
type: string
24+
default: ' '
2425

2526
resources:
2627
repositories:

0 commit comments

Comments
 (0)