diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 18f4e3da0e9c3a..1646c9e406a693 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -15,7 +15,7 @@ ] }, "microsoft.dotnet.xharness.cli": { - "version": "1.0.0-prerelease.21572.4", + "version": "1.0.0-prerelease.21576.1", "commands": [ "xharness" ] diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 06215273c2518c..2e43c4f270d246 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,8 +1,8 @@ - + https://github.com/dotnet/icu - 18e6b6f8ac75c6ceff0be934d863df94be035bf1 + 65a1c6dbbc036610145cf5dfc67027c0efe9e79d https://github.com/dotnet/msquic @@ -18,153 +18,153 @@ - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - 7097001cd87357ebc6fb82f3c7a801efeed70e3f + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 https://github.com/microsoft/vstest 140434f7109d357d0158ade9e5164a4861513965 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 - + https://github.com/dotnet/llvm-project - 75fa01d7eba1a283c7f2513bffa72c6bea440ac2 + 2059b611a9a58c0bcb25ece23c65acce83503a37 https://github.com/dotnet/runtime @@ -202,45 +202,45 @@ https://github.com/dotnet/linker f2dd65f51f6096f25e00e0d1e4c6af0e85d41865 - + https://github.com/dotnet/xharness - 7aa4d338b58a2b21974933802bd731a64c36c1d8 + 2863beb74c1abad7ddfe9ef7afea6fc2605e8a03 - + https://github.com/dotnet/xharness - 7aa4d338b58a2b21974933802bd731a64c36c1d8 + 2863beb74c1abad7ddfe9ef7afea6fc2605e8a03 - + https://github.com/dotnet/arcade - fecf65bedcee9036b8ba9d8d7feef5413f294914 + 427c05909067bb2e484116ae2239456bb45adb85 - + https://dev.azure.com/dnceng/internal/_git/dotnet-optimization - 3c8cfc49b13ac020b70585ee49b2e4a1c99a7793 + a869a09cb4bbf06502137c1044e6af7ccb3a8bd5 - + https://dev.azure.com/dnceng/internal/_git/dotnet-optimization - 3c8cfc49b13ac020b70585ee49b2e4a1c99a7793 + a869a09cb4bbf06502137c1044e6af7ccb3a8bd5 - + https://dev.azure.com/dnceng/internal/_git/dotnet-optimization - 3c8cfc49b13ac020b70585ee49b2e4a1c99a7793 + a869a09cb4bbf06502137c1044e6af7ccb3a8bd5 - + https://dev.azure.com/dnceng/internal/_git/dotnet-optimization - 3c8cfc49b13ac020b70585ee49b2e4a1c99a7793 + a869a09cb4bbf06502137c1044e6af7ccb3a8bd5 - + https://github.com/dotnet/hotreload-utils - a445d89f31358546e8d6d60a04a75643abd7de64 + 652a6ae580fdbfd58b7622a17b5b75ec15ac36c8 - + https://github.com/dotnet/runtime-assets - 84788d11ca8c96c61a9cf7847c46bc012cef2b8b + 043b7a65a4319c412b1fe03b8a770be67aeedfc4 - + https://github.com/dotnet/roslyn-analyzers - 380759dbc374f0fa2e2b714b0bf317231a06c2dd + ffd024eb265e97e639a2879d869cf82b5b958992 https://github.com/dotnet/sdk diff --git a/eng/Versions.props b/eng/Versions.props index 329396b841b751..f6259e4fe5f46e 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -51,27 +51,27 @@ 3.3.2 4.0.0-4.final 4.0.0-4.final - 7.0.0-preview1.21554.2 + 7.0.0-preview1.21572.6 4.0.0-5.21453.15 2.0.0-alpha.1.21525.11 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 2.5.1-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21568.2 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 - 7.0.0-beta.21559.3 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 2.5.1-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 + 7.0.0-beta.21576.4 6.0.0-preview.1.102 @@ -121,22 +121,22 @@ 4.5.0 7.0.0-alpha.1.21562.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 - 7.0.0-beta.21552.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 + 7.0.0-beta.21575.1 - 1.0.0-prerelease.21563.1 - 1.0.0-prerelease.21563.1 - 1.0.0-prerelease.21563.1 - 1.0.0-prerelease.21563.1 + 1.0.0-prerelease.21574.1 + 1.0.0-prerelease.21574.1 + 1.0.0-prerelease.21574.1 + 1.0.0-prerelease.21574.1 16.9.0-beta1.21055.5 2.0.0-beta1.20253.1 @@ -154,9 +154,9 @@ 1.0.1-prerelease-00006 16.9.0-preview-20201201-01 - 1.0.0-prerelease.21572.4 - 1.0.0-prerelease.21572.4 - 1.0.2-alpha.0.21558.2 + 1.0.0-prerelease.21576.1 + 1.0.0-prerelease.21576.1 + 1.0.2-alpha.0.21574.2 2.4.2-pre.9 2.4.2 1.3.0 @@ -172,18 +172,18 @@ 7.0.100-1.21562.1 $(MicrosoftNETILLinkTasksVersion) - 7.0.0-alpha.1.21558.1 + 7.0.0-alpha.1.21565.1 7.0.0-alpha.1.21529.3 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 - 11.1.0-alpha.1.21558.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 + 11.1.0-alpha.1.21565.1 7.0.0-alpha.1.21560.2 $(MicrosoftNETWorkloadEmscriptenManifest70100Version) diff --git a/eng/common/build.sh b/eng/common/build.sh index bc07a1c6848243..55b298f16ccd1f 100755 --- a/eng/common/build.sh +++ b/eng/common/build.sh @@ -187,10 +187,6 @@ function InitializeCustomToolset { } function Build { - - if [[ "$ci" == true ]]; then - TryLogClientIpAddress - fi InitializeToolset InitializeCustomToolset diff --git a/eng/common/darc-init.sh b/eng/common/darc-init.sh index 39abdbecdcf11b..84c1d0cc2e75ac 100755 --- a/eng/common/darc-init.sh +++ b/eng/common/darc-init.sh @@ -53,7 +53,7 @@ fi function InstallDarcCli { local darc_cli_package_name="microsoft.dotnet.darc" - InitializeDotNetCli + InitializeDotNetCli true local dotnet_root=$_InitializeDotNetCli if [ -z "$toolpath" ]; then diff --git a/eng/common/native/init-compiler.sh b/eng/common/native/init-compiler.sh index 8c944f30b28649..e361e03fabdd2e 100644 --- a/eng/common/native/init-compiler.sh +++ b/eng/common/native/init-compiler.sh @@ -2,6 +2,7 @@ # # This file detects the C/C++ compiler and exports it to the CC/CXX environment variables # +# NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here! if [[ "$#" -lt 3 ]]; then echo "Usage..." @@ -111,12 +112,10 @@ if [[ -z "$CC" ]]; then exit 1 fi -if [[ "$compiler" == "clang" ]]; then - if command -v "lld$desired_version" > /dev/null; then - # Only lld version >= 9 can be considered stable - if [[ "$majorVersion" -ge 9 ]]; then - LDFLAGS="-fuse-ld=lld" - fi +# Only lld version >= 9 can be considered stable +if [[ "$compiler" == "clang" && "$majorVersion" -ge 9 ]]; then + if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then + LDFLAGS="-fuse-ld=lld" fi fi diff --git a/eng/common/sdk-task.ps1 b/eng/common/sdk-task.ps1 index 7ab9baac5c8d9a..b1bca63ab1d82c 100644 --- a/eng/common/sdk-task.ps1 +++ b/eng/common/sdk-task.ps1 @@ -83,9 +83,6 @@ try { } if ($restore) { - if ($ci) { - Try-LogClientIpAddress - } Build 'Restore' } diff --git a/eng/common/sdl/execute-all-sdl-tools.ps1 b/eng/common/sdl/execute-all-sdl-tools.ps1 index 1157151f4862a2..e5bef8ebd3a3b4 100644 --- a/eng/common/sdl/execute-all-sdl-tools.ps1 +++ b/eng/common/sdl/execute-all-sdl-tools.ps1 @@ -124,7 +124,7 @@ try { Exec-BlockVerbosely { & $(Join-Path $PSScriptRoot 'run-sdl.ps1') ` -GuardianCliLocation $guardianCliLocation ` - -WorkingDirectory $workingDirectory ` + -WorkingDirectory $SourceDirectory ` -UpdateBaseline $UpdateBaseline ` -GdnFolder $gdnFolder } diff --git a/eng/common/templates/job/job.yml b/eng/common/templates/job/job.yml index 37dceb1bab0a93..7678b94ce740c0 100644 --- a/eng/common/templates/job/job.yml +++ b/eng/common/templates/job/job.yml @@ -114,6 +114,7 @@ jobs: continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT')) + - ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}: - task: NuGetAuthenticate@0 - ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}: diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 44484289943ed5..f1e1cb53953bcc 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -163,9 +163,6 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) { # Disable telemetry on CI. if ($ci) { $env:DOTNET_CLI_TELEMETRY_OPTOUT=1 - - # In case of network error, try to log the current IP for reference - Try-LogClientIpAddress } # Source Build uses DotNetCoreSdkDir variable @@ -301,32 +298,45 @@ function InstallDotNet([string] $dotnetRoot, if ($skipNonVersionedFiles) { $installParameters.SkipNonVersionedFiles = $skipNonVersionedFiles } if ($noPath) { $installParameters.NoPath = $True } - try { - & $installScript @installParameters - } - catch { - if ($runtimeSourceFeed -or $runtimeSourceFeedKey) { - Write-Host "Failed to install dotnet from public location. Trying from '$runtimeSourceFeed'" - if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed } + $variations = @() + $variations += @($installParameters) - if ($runtimeSourceFeedKey) { - $decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey) - $decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes) - $installParameters.FeedCredential = $decodedString - } + $dotnetBuilds = $installParameters.Clone() + $dotnetbuilds.AzureFeed = "https://dotnetbuilds.azureedge.net/public" + $variations += @($dotnetBuilds) - try { - & $installScript @installParameters - } - catch { - Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from custom location '$runtimeSourceFeed'." - ExitWithExitCode 1 - } + if ($runtimeSourceFeed) { + $runtimeSource = $installParameters.Clone() + $runtimeSource.AzureFeed = $runtimeSourceFeed + if ($runtimeSourceFeedKey) { + $decodedBytes = [System.Convert]::FromBase64String($runtimeSourceFeedKey) + $decodedString = [System.Text.Encoding]::UTF8.GetString($decodedBytes) + $runtimeSource.FeedCredential = $decodedString + } + $variations += @($runtimeSource) + } + + $installSuccess = $false + foreach ($variation in $variations) { + if ($variation | Get-Member AzureFeed) { + $location = $variation.AzureFeed } else { - Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from public location." - ExitWithExitCode 1 + $location = "public location"; + } + Write-Host "Attempting to install dotnet from $location." + try { + & $installScript @variation + $installSuccess = $true + break + } + catch { + Write-Host "Failed to install dotnet from $location." } } + if (-not $installSuccess) { + Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from any of the specified locations." + ExitWithExitCode 1 + } } # @@ -882,24 +892,6 @@ if (!$disableConfigureToolsetImport) { } } -function Try-LogClientIpAddress() -{ - Write-Host "Attempting to log this client's IP for Azure Package feed telemetry purposes" - try - { - $result = Invoke-WebRequest -Uri "http://co1.msedge.net/fdv2/diagnostics.aspx" -UseBasicParsing - $lines = $result.Content.Split([Environment]::NewLine) - $socketIp = $lines | Select-String -Pattern "^Socket IP:.*" - Write-Host $socketIp - $clientIp = $lines | Select-String -Pattern "^Client IP:.*" - Write-Host $clientIp - } - catch - { - Write-Host "Unable to get this machine's effective IP address for logging: $_" - } -} - # # If $ci flag is set, turn on (and log that we did) special environment variables for improved Nuget client retry logic. # diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 6a4871ef72b7a9..e555c34269f6e8 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -188,28 +188,29 @@ function InstallDotNet { GetDotNetInstallScript "$root" local install_script=$_GetDotNetInstallScript - local archArg='' + local installParameters=(--version $version --install-dir "$root") + if [[ -n "${3:-}" ]] && [ "$3" != 'unset' ]; then - archArg="--architecture $3" + installParameters+=(--architecture $3) fi - local runtimeArg='' if [[ -n "${4:-}" ]] && [ "$4" != 'sdk' ]; then - runtimeArg="--runtime $4" + installParameters+=(--runtime $4) fi - local skipNonVersionedFilesArg="" if [[ "$#" -ge "5" ]] && [[ "$5" != 'false' ]]; then - skipNonVersionedFilesArg="--skip-non-versioned-files" + installParameters+=(--skip-non-versioned-files) fi - bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || { - local exit_code=$? - echo "Failed to install dotnet SDK from public location (exit code '$exit_code')." - local runtimeSourceFeed='' - if [[ -n "${6:-}" ]]; then - runtimeSourceFeed="--azure-feed $6" - fi + local variations=() # list of variable names with parameter arrays in them + + local public_location=("${installParameters[@]}") + variations+=(public_location) - local runtimeSourceFeedKey='' + local dotnetbuilds=("${installParameters[@]}" --azure-feed "https://dotnetbuilds.azureedge.net/public") + variations+=(dotnetbuilds) + + if [[ -n "${6:-}" ]]; then + variations+=(private_feed) + local private_feed=("${installParameters[@]}" --azure-feed $6) if [[ -n "${7:-}" ]]; then # The 'base64' binary on alpine uses '-d' and doesn't support '--decode' # '-d'. To work around this, do a simple detection and switch the parameter @@ -219,22 +220,27 @@ function InstallDotNet { decodeArg="-d" fi decodedFeedKey=`echo $7 | base64 $decodeArg` - runtimeSourceFeedKey="--feed-credential $decodedFeedKey" + private_feed+=(--feed-credential $decodedFeedKey) fi + fi - if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then - bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || { - local exit_code=$? - Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')." - ExitWithExitCode $exit_code - } - else - if [[ $exit_code != 0 ]]; then - Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')." - fi - ExitWithExitCode $exit_code + local installSuccess=0 + for variationName in "${variations[@]}"; do + local name="$variationName[@]" + local variation=("${!name}") + echo "Attempting to install dotnet from $variationName." + bash "$install_script" "${variation[@]}" && installSuccess=1 + if [[ "$installSuccess" -eq 1 ]]; then + break fi - } + + echo "Failed to install dotnet from $variationName." + done + + if [[ "$installSuccess" -eq 0 ]]; then + Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from any of the specified locations." + ExitWithExitCode 1 + fi } function with_retries { @@ -399,13 +405,6 @@ function StopProcesses { return 0 } -function TryLogClientIpAddress () { - echo 'Attempting to log this client''s IP for Azure Package feed telemetry purposes' - if command -v curl > /dev/null; then - curl -s 'http://co1.msedge.net/fdv2/diagnostics.aspx' | grep ' IP: ' || true - fi -} - function MSBuild { local args=$@ if [[ "$pipelines_log" == true ]]; then diff --git a/global.json b/global.json index a2a8b249031174..4bb3c2487cdec9 100644 --- a/global.json +++ b/global.json @@ -1,21 +1,21 @@ { "sdk": { - "version": "6.0.100-rc.2.21505.57", + "version": "6.0.100", "allowPrerelease": true, "rollForward": "major" }, "tools": { - "dotnet": "6.0.100-rc.2.21505.57" + "dotnet": "6.0.100" }, "native-tools": { "cmake": "3.16.4", "python3": "3.7.1" }, "msbuild-sdks": { - "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "7.0.0-beta.21559.3", - "Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21559.3", - "Microsoft.DotNet.Helix.Sdk": "7.0.0-beta.21559.3", - "Microsoft.DotNet.SharedFramework.Sdk": "7.0.0-beta.21559.3", + "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "7.0.0-beta.21576.4", + "Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21576.4", + "Microsoft.DotNet.Helix.Sdk": "7.0.0-beta.21576.4", + "Microsoft.DotNet.SharedFramework.Sdk": "7.0.0-beta.21576.4", "Microsoft.Build.NoTargets": "3.1.0", "Microsoft.Build.Traversal": "3.0.23", "Microsoft.NET.Sdk.IL": "7.0.0-alpha.1.21562.1"