diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2019-02-04 19:00:39 -0800 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2019-02-04 19:00:39 -0800 |
commit | f471342cc072546edf84bb110aa3d2765ad2bb76 (patch) | |
tree | 8b535f2cbe5c81b43ec9572d96abeca2938df7df /build.sh | |
parent | 7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff) | |
download | coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.gz coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.tar.bz2 coreclr-f471342cc072546edf84bb110aa3d2765ad2bb76.zip |
Configure MSBuild debug path and save any logs
We have had many problems in the CI with MSBuild failing, and not
capturing the failure logs.
See https://github.com/dotnet/coreclr/issues/20236.
So, for all msbuild invocations, set MSBUILDDEBUGPATH to a new,
distinguished, subdirectory of the bin\Logs directory, named
"MsbuildDebugLogs". Change the CI to upload any log files found
there.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -140,6 +140,7 @@ setup_dirs() mkdir -p "$__RootBinDir" mkdir -p "$__BinDir" mkdir -p "$__LogsDir" + mkdir -p "$__MsbuildDebugLogsDir" mkdir -p "$__IntermediatesDir" if [ $__CrossBuild == 1 ]; then @@ -996,6 +997,7 @@ fi # Set dependent variables __LogsDir="$__RootBinDir/Logs" +__MsbuildDebugLogsDir="$__LogsDir/MsbuildDebugLogs" # init the host distro name initHostDistroRid @@ -1047,6 +1049,9 @@ initTargetDistroRid # Make the directories necessary for build if they don't exist setup_dirs +# Set up the directory for MSBuild debug logs. +export MSBUILDDEBUGPATH="${__MsbuildDebugLogsDir}" + # Check prereqs. check_prereqs |