From bf42f47b0ca2493d18378c502c59ffc98ff22151 Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 10 Jan 2021 15:26:10 -0800 Subject: [PATCH] Updated pom with jfrog details and updated jenkins file --- Jenkinsfile | 18 ------------------ pom.xml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 52c117b12..746150d5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,24 +24,6 @@ pipeline { stages { stage('build maven package') { steps { - rtServer ( - id: "ARTIFACTORY_SERVER", - url: "$artifactory_url" - ) - rtMavenDeployer ( - id: "MAVEN_DEPLOYER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: "spring-petclinic", - snapshotRepo: "spring-petclinic-snapshot" - ) - - rtMavenResolver ( - id: "MAVEN_RESOLVER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: "spring-petclinic", - snapshotRepo: "spring-petclinic-snapshot" - ) - sh "mvn validate compile test package" } } diff --git a/pom.xml b/pom.xml index 4941843ad..54d418406 100644 --- a/pom.xml +++ b/pom.xml @@ -311,6 +311,10 @@ false + + Maven-Artifactory-Plugin + https://petclinic.jfrog.io + @@ -363,6 +367,30 @@ + + org.jfrog.buildinfo + artifactory-maven-plugin + 2.2.1 + false + + + build-info + + publish + + + + https://petclinic.jfrog.io/artifactory + jfroguser + AdminPassword1 + spring-petclinic + spring-petclinic-snapshot + + + + + +