Skip to content

Commit 3c865d6

Browse files
committed
Avoid changing global state in CI runs (#21602)
- set `$env:DOTNET_CLI_HOME` because we need to install global tools in this repo - without this, we see `dotnet-serve` installation failures on unclean machines
1 parent 2ca2a2d commit 3c865d6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.azure/pipelines/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pr:
1919
- '*'
2020

2121
variables:
22+
- name: DOTNET_CLI_HOME
23+
value: $(Agent.BuildDirectory)
2224
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
2325
value: true
2426
- name: _TeamName

.azure/pipelines/jobs/default-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
- _BuildConfig: ${{ parameters.configuration }}
114114
- BuildConfiguration: ${{ parameters.configuration }}
115115
- BuildDirectory: ${{ parameters.buildDirectory }}
116+
- DOTNET_CLI_HOME: $(Agent.BuildDirectory)
116117
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
117118
- TeamName: AspNetCore
118119
- ${{ if and(eq(parameters.installJdk, 'true'), eq(parameters.agentOs, 'Windows')) }}:

0 commit comments

Comments
 (0)