Temporarily disable multithreaded on Jenkins for Windows.
authorSoemin Tjong <stjong@microsoft.com>
Wed, 22 Mar 2017 00:31:54 +0000 (17:31 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 23 Mar 2017 16:42:55 +0000 (16:42 +0000)
This is to address random crashes with error 1033 like the following:
scons: *** [out\windows\amd64\debug\resource\IPCA\unittests\utresource\ipca\unittests\ipcatests] Error 1033

Change-Id: I4d2d47b495091fe325a7fe82b26fdf3a0e438ccb
Signed-off-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18099
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
run.bat

diff --git a/run.bat b/run.bat
index ec9a9bd..c20278a 100644 (file)
--- a/run.bat
+++ b/run.bat
@@ -45,7 +45,16 @@ if "%MULTIPLE_OWNER%" == "" (
   set MULTIPLE_OWNER=1
 )
 
-set THREAD_COUNT=%NUMBER_OF_PROCESSORS%
+REM  Temporary solution to build single threaded in Jenkins to fix random build break.
+REM  This change will be reverted after pywin is installed in Jenkins and problem is confirmed fixed.
+REM  Difference between multi and single threaded Jenkins build for Windows is 5 minutes.
+REM  Tracking revert: https://jira.iotivity.org/browse/IOT-1948.
+if "%JENKINS_HOME%" == "" (
+  set THREAD_COUNT=%NUMBER_OF_PROCESSORS%
+) else (
+  set THREAD_COUNT=1
+)
+
 set ROUTING=EP
 set WITH_UPSTREAM_LIBCOAP=1
 set BINDIR=debug