summaryrefslogtreecommitdiff
path: root/build-test.sh
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
committerBruce Forstall <brucefo@microsoft.com>2019-02-04 19:00:39 -0800
commitf471342cc072546edf84bb110aa3d2765ad2bb76 (patch)
tree8b535f2cbe5c81b43ec9572d96abeca2938df7df /build-test.sh
parent7e20b6fa7b2253511b6f0a7d76c955360e040df6 (diff)
downloadcoreclr-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-test.sh')
-rwxr-xr-xbuild-test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/build-test.sh b/build-test.sh
index 86472d1d73..75c8570f9a 100755
--- a/build-test.sh
+++ b/build-test.sh
@@ -180,6 +180,13 @@ generate_layout()
echo "Creating LogsDir: ${__LogsDir}"
mkdir -p $__LogsDir
fi
+ if [ ! -f "$__MsbuildDebugLogsDir" ]; then
+ echo "Creating MsbuildDebugLogsDir: ${__MsbuildDebugLogsDir}"
+ mkdir -p $__MsbuildDebugLogsDir
+ fi
+
+ # Set up the directory for MSBuild debug logs.
+ export MSBUILDDEBUGPATH="${__MsbuildDebugLogsDir}"
__BuildProperties="-p:OSGroup=${__BuildOS} -p:BuildOS=${__BuildOS} -p:BuildArch=${__BuildArch} -p:BuildType=${__BuildType}"
@@ -283,6 +290,13 @@ build_Tests()
echo "Creating LogsDir: ${__LogsDir}"
mkdir -p $__LogsDir
fi
+ if [ ! -f "$__MsbuildDebugLogsDir" ]; then
+ echo "Creating MsbuildDebugLogsDir: ${__MsbuildDebugLogsDir}"
+ mkdir -p $__MsbuildDebugLogsDir
+ fi
+
+ # Set up the directory for MSBuild debug logs.
+ export MSBUILDDEBUGPATH="${__MsbuildDebugLogsDir}"
__BuildProperties="-p:OSGroup=${__BuildOS} -p:BuildOS=${__BuildOS} -p:BuildArch=${__BuildArch} -p:BuildType=${__BuildType}"
@@ -898,6 +912,7 @@ fi
# Set dependent variables
__LogsDir="$__RootBinDir/Logs"
+__MsbuildDebugLogsDir="$__LogsDir/MsbuildDebugLogs"
# init the host distro name
initHostDistroRid