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') {