Skip to content

Commit 307350e

Browse files
authored
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 64a0d03 commit 307350e

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
@@ -122,6 +122,7 @@ jobs:
122122
- _BuildConfig: ${{ parameters.configuration }}
123123
- BuildConfiguration: ${{ parameters.configuration }}
124124
- BuildDirectory: ${{ parameters.buildDirectory }}
125+
- DOTNET_CLI_HOME: $(Agent.BuildDirectory)
125126
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
126127
- TeamName: AspNetCore
127128
- ${{ if and(eq(parameters.installJdk, 'true'), eq(parameters.agentOs, 'Windows')) }}:

0 commit comments

Comments
 (0)