From a2f5be2c1b76297516b0f7d4d580ee9eedf35fc6 Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 10 Jan 2021 15:00:27 -0800 Subject: [PATCH] updated jenkins --- Jenkinsfile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 585b147a7..19a51cc4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,25 @@ pipeline { id: "ARTIFACTORY_SERVER", url: "$artifactory_url" ) - sh 'mvn validate compile test package' + rtMavenDeployer ( + id: "MAVEN_DEPLOYER", + serverId: "ARTIFACTORY_SERVER", + releaseRepo: "spring-petclinic" + ) + + rtMavenResolver ( + id: "MAVEN_RESOLVER", + serverId: "ARTIFACTORY_SERVER", + releaseRepo: "libs-release" + ) + + rtMavenRun ( + tool: MAVEN_TOOL, // Tool name from Jenkins configuration + pom: 'pom.xml', + goals: 'validate compile test', + deployerId: "MAVEN_DEPLOYER", + resolverId: "MAVEN_RESOLVER" + ) } } stage('build docker image') {