summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-03-25 21:44:24 (GMT)
committerBruce Forstall <brucefo@microsoft.com>2018-03-26 19:47:25 (GMT)
commitbc559a0dc36a1f152aa0e576ad80165585c148f1 (patch)
tree39ee8b9fbacfa4a8867a00b45e27526765b64e05 /build.sh
parent5952ead7831bf0a3c29424e927c58bfbb7d1380f (diff)
downloadcoreclr-bc559a0dc36a1f152aa0e576ad80165585c148f1.zip
coreclr-bc559a0dc36a1f152aa0e576ad80165585c148f1.tar.gz
coreclr-bc559a0dc36a1f152aa0e576ad80165585c148f1.tar.bz2
Work around Jenkins problem with large env vars
Clear out `ghprbCommentBody` before msbuild is invoked, which can't deal with large environment variables.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index d6c1be5..b1b09be 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash
+# Work around Jenkins CI + msbuild problem: Jenkins sometimes creates very large environment
+# variables, and msbuild can't handle environment blocks with such large variables. So clear
+# out the variables that might be too large.
+export ghprbCommentBody=
+
# resolve python-version to use
if [ "$PYTHON" == "" ] ; then
if ! PYTHON=$(command -v python2.7 || command -v python2 || command -v python)