Repair Jenkins job - add a full path to workspace when run on Windows

Workaround for JENKINS-52657
This commit is contained in:
Sylwester Lachiewicz 2018-10-15 00:20:25 +02:00
parent 6e619a1bcb
commit 42c77a71df
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -78,8 +78,8 @@ for (String os in runITsOses) {
stage("${stageLabel}") {
// on Windows, need a short path or we hit 256 character limit for paths
// using EXECUTOR_NUMBER guarantees that concurrent builds on same agent
// will not trample each other
dir(isUnix() ? 'test' : "/mvn-it-${EXECUTOR_NUMBER}.tmp") {
// will not trample each other plus workaround for JENKINS-52657
dir(isUnix() ? 'test' : "c:\\mvn-it-${EXECUTOR_NUMBER}.tmp") {
def WORK_DIR=pwd()
checkout tests
if (isUnix()) {