From 43e030b568878b3f3089fd97aa7a416db936b187 Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Fri, 20 Apr 2018 16:50:30 +1000 Subject: [PATCH] using the same for all invocation will work better... Signed-off-by: olivier lamy --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5ce7a1def2c..061e7aeb60e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,7 @@ def getFullBuild(jdk, os) { // System Dependent Locations def mvntool = tool name: 'maven3.5', type: 'hudson.tasks.Maven$MavenInstallation' def jdktool = tool name: "$jdk", type: 'hudson.model.JDK' + def localRepo = ".repository" // "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" // Environment List mvnEnv = ["PATH+MVN=${mvntool}/bin", "PATH+JDK=${jdktool}/bin", "JAVA_HOME=${jdktool}/", "MAVEN_HOME=${mvntool}"] @@ -42,7 +43,7 @@ def getFullBuild(jdk, os) { jdk: "$jdk", publisherStrategy: 'EXPLICIT', globalMavenSettingsConfig: 'oss-settings.xml', - mavenLocalRepo: ".repository") { + mavenLocalRepo: localRepo) { sh "mvn -V -B clean install -DskipTests -T6" } @@ -64,7 +65,7 @@ def getFullBuild(jdk, os) { jdk: "$jdk", publisherStrategy: 'EXPLICIT', globalMavenSettingsConfig: 'oss-settings.xml', - mavenLocalRepo: "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}") { + mavenLocalRepo: localRepo) { sh "mvn -V -B javadoc:javadoc -T5" } } @@ -87,7 +88,7 @@ def getFullBuild(jdk, os) { publisherStrategy: 'EXPLICIT', //options: [invokerPublisher(disabled: false)], globalMavenSettingsConfig: 'oss-settings.xml', - mavenLocalRepo: "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}") { + mavenLocalRepo: localRepo) { // sh "mvn -V -B install -Dmaven.test.failure.ignore=true -Prun-its -T3 -e -Dmaven.repo.local=${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER} -Pmongodb" } @@ -142,7 +143,7 @@ def getFullBuild(jdk, os) { jdk: "$jdk", publisherStrategy: 'EXPLICIT', globalMavenSettingsConfig: 'oss-settings.xml', - mavenLocalRepo: "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}") { + mavenLocalRepo: localRepo) { sh "mvn -V -B -Pcompact3 clean install -T5" } }