From 911b6932506f5b97c7f8492fdf1f6f2c0e712f59 Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 10 Jan 2021 20:41:01 -0800 Subject: [PATCH] locate mvn --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index eda234539..637177846 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,6 +33,7 @@ pipeline { steps { sh "java -version" sh "mvn -version" + withMaven { // sh "mvn clean validate compile test package" // sh "ls -la target" // 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"' @@ -44,6 +45,7 @@ pipeline { releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot") rtMavenRun (tool: 'mvn', pom: './pom.xml',goals: 'clean install', deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER") + } } } stage('build docker image') {