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