From 49e062f018ccf513a2719f5c06ec87277e29d54c Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 10 Jan 2021 19:15:40 -0800 Subject: [PATCH] fixed syntax by define tools --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 10f35c3c2..567d160c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,9 @@ pipeline { // START : // Definition of Jenkins job configuration ///////////////////////////////////////////////////////////////////// + tools { + maven 'M3' + } options { skipStagesAfterUnstable() } @@ -38,7 +41,7 @@ pipeline { releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot") rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "ARTIFACTORY_SERVER", releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot") - rtMavenRun (tool: $env.MAVEN_TOOL, pom: './pom.xml',goals: 'clean install', + rtMavenRun (tool: MAVEN_TOOL, pom: './pom.xml',goals: 'clean install', deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER") //sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"' }