From: Olivier Lamy Date: Wed, 18 Apr 2018 04:06:37 +0000 (+1000) Subject: reuse variable X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69bfe2f10a1d58207624e18fcb439e73d8835fbf;p=archiva.git reuse variable --- diff --git a/Jenkinsfile b/Jenkinsfile index ae6a5949c..f8992e71b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ node ("ubuntu") { stage ('Build') { withEnv(mvnEnv) { timeout(120) { - withMaven(maven: 'Maven 3.5.2', jdk: 'JDK 1.8 (latest)', + withMaven(maven: mvntool.name, jdk: jdktool.name, globalMavenSettingsConfig: deploySettings, mavenLocalRepo: "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" )