From ce44992e8febba819b0c8c9a2fd117397f443d99 Mon Sep 17 00:00:00 2001 From: Ricardo Arenas Date: Fri, 24 Jul 2020 07:00:18 -0700 Subject: [PATCH] Revert "set DOTNET_CLI_HOME to repo local path during CI (#5775)" This reverts commit 8f61e5f14f60ff825a0befff291703ccdfa52f53. --- eng/common/tools.ps1 | 5 +---- eng/common/tools.sh | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index d06fe66c569..6f8bc41116b 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -112,12 +112,9 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) { # Disable first run since we do not need all ASP.NET packages restored. $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - # On CI: - # Disable telemetry - # Set the CLI home directory to the build machine's workspace. + # Disable telemetry on CI. if ($ci) { $env:DOTNET_CLI_TELEMETRY_OPTOUT=1 - $env:DOTNET_CLI_HOME=$env:AGENT_BUILDDIRECTORY } # Source Build uses DotNetCoreSdkDir variable diff --git a/eng/common/tools.sh b/eng/common/tools.sh index b2f41127729..e94fce22ec3 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -110,12 +110,9 @@ function InitializeDotNetCli { # Disable first run since we want to control all package sources export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - # On CI: - # Disable telemetry - # Set the CLI home directory to the build machine's workspace. + # Disable telemetry on CI if [[ $ci == true ]]; then export DOTNET_CLI_TELEMETRY_OPTOUT=1 - export DOTNET_CLI_HOME=$AGENT_BUILDDIRECTORY fi # LTTNG is the logging infrastructure used by Core CLR. Need this variable set