Skip to content

Commit 07caf62

Browse files
authored
enable msbuild server by default for team internal build pipelines (#11295)
### Part of #9379 ### Context Enable MSBuildServer for our internal pipelines so that we can start troubleshooting any issues that might arise. ### Changes Made Enabled said server by toggling the appropriate environment variables. ### Testing This is the test.
2 parents de017c7 + 3bc5cda commit 07caf62

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.vsts-dotnet-ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ jobs:
167167
inputs:
168168
filename: 'eng/cibuild_bootstrapped_msbuild.cmd'
169169
arguments: '-msbuildEngine dotnet -onlyDocChanged $(onlyDocChanged)'
170+
env:
171+
MSBUILDUSESERVER: "1"
170172
- task: PublishTestResults@2
171173
displayName: Publish .NET Framework Test Results
172174
inputs:
@@ -309,6 +311,8 @@ jobs:
309311
Token: $(dn-bot-dnceng-artifact-feeds-rw)
310312
- bash: . 'eng/cibuild_bootstrapped_msbuild.sh' --onlyDocChanged $(onlyDocChanged)
311313
displayName: CI Build
314+
env:
315+
MSBUILDUSESERVER: "1"
312316
- task: PublishTestResults@2
313317
displayName: Publish .NET Test Results
314318
inputs:
@@ -374,6 +378,8 @@ jobs:
374378
Token: $(dn-bot-dnceng-artifact-feeds-rw)
375379
- bash: . 'eng/cibuild_bootstrapped_msbuild.sh' --onlyDocChanged $(onlyDocChanged)
376380
displayName: CI Build
381+
env:
382+
MSBUILDUSESERVER: "1"
377383
- task: PublishTestResults@2
378384
displayName: Publish .NET Test Results
379385
inputs:

src/UnitTests.Shared/TestEnvironment.cs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static TestEnvironment Create(ITestOutputHelper output = null, bool ignor
5656
// Clear these two environment variables first in case pre-setting affects the test.
5757
env.SetEnvironmentVariable("MSBUILDLIVELOGGER", null);
5858
env.SetEnvironmentVariable("MSBUILDTERMINALLOGGER", null);
59+
env.SetEnvironmentVariable("MSBUILDUSESERVER", null);
5960

6061
return env;
6162
}

0 commit comments

Comments
 (0)