Skip to content

Commit

Permalink
Revert "Set dotnet_cli_home to reporoot instead of relying in azdo va…
Browse files Browse the repository at this point in the history
…riables to fix local build and docker scenarios (#5805)" (#5815)

This reverts commit 04a4104.
  • Loading branch information
MattGal authored Jul 20, 2020
1 parent f9a6c4e commit c5da975
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) {

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

# Source Build uses DotNetCoreSdkDir variable
Expand Down
4 changes: 2 additions & 2 deletions eng/common/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function InitializeDotNetCli {

# On CI:
# Disable telemetry
# Set the CLI home directory to the repo root.
# 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=$repo_root
export DOTNET_CLI_HOME=$AGENT_BUILDDIRECTORY
fi

# LTTNG is the logging infrastructure used by Core CLR. Need this variable set
Expand Down

0 comments on commit c5da975

Please sign in to comment.