From 04a90acd23eb8014ee735b8361e033a99e329e6a Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 15 Aug 2017 10:02:43 -0400 Subject: [PATCH] Update Jenkinsfile to point to shorter workspace directory in Windows --- Jenkinsfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b2714c6996..4291403834 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,6 +27,7 @@ stage('Build') { parallel linux: { node('linux') { timeout(time: 45, unit: 'MINUTES') { + deleteDir() checkout scm sh 'git submodule update --init --recursive' @@ -43,16 +44,18 @@ stage('Build') { windows: { node('windows') { timeout(time: 45, unit: 'MINUTES') { - deleteDir() - checkout scm - bat ''' - git submodule update --init --recursive - if not exist "build" mkdir "build" - cd build - cmake -G "Visual Studio 15 2017 Win64" .. ''' + - flags + ''' .. - msbuild.exe OpenSpace.sln /nologo /verbosity:minimal /m:2 /p:Configuration=Debug - ''' + ws("C:/J") { + deleteDir() + checkout scm + bat ''' + git submodule update --init --recursive + if not exist "build" mkdir "build" + cd build + cmake -G "Visual Studio 15 2017 Win64" .. ''' + + flags + ''' .. + msbuild.exe OpenSpace.sln /nologo /verbosity:minimal /m:2 /p:Configuration=Debug + ''' + } } } },