Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ 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

# Disable telemetry on CI.
# On CI:
# Disable telemetry
# Set the CLI home directory to the build machine's workspace.
if ($ci) {
$env:DOTNET_CLI_TELEMETRY_OPTOUT=1
$env:DOTNET_CLI_HOME=$env:AGENT_BUILDDIRECTORY
}

# Source Build uses DotNetCoreSdkDir variable
Expand Down
5 changes: 4 additions & 1 deletion eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ function InitializeDotNetCli {
# Disable first run since we want to control all package sources
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1

# Disable telemetry on CI
# On CI:
# Disable telemetry
# Set the CLI home directory to the build machine's workspace.
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
Expand Down