From 74010d4ea09c8ced09670cf470051dc348408dc7 Mon Sep 17 00:00:00 2001 From: Bharatkumar5690 <120087402+Bharatkumar5690@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:42:28 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 79422bc21..865857d91 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,43 +11,9 @@ pipeline { url: 'https://github.com/Bharatkumar5690/spring-petclinic.git' } } - stage('Artifactory configuration') { - steps { - rtServer ( - id: "ARTIFACTORY_SERVER", - url: 'https://sbharatkumar.jfrog.io/artifactory', - credentialsId: 'JFROG_CLOUD_ADMIN' - ) - rtMavenDeployer ( - id: "MAVEN_DEPLOYER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: 'libs-release', - snapshotRepo: 'libs-snapshot' - ) - rtMavenResolver ( - id: "MAVEN_RESOLVER", - serverId: "ARTIFACTORY_SERVER", - releaseRepo: 'libs-release', - snapshotRepo: 'libs-snapshot' - ) - } - } stage('package') { steps { - rtMavenRun ( - tool: 'MAVEN_DEFAULT', - pom: 'pom.xml', - goals: 'clean install', - deployerId: "MAVEN_DEPLOYER", - resolverId: "MAVEN_RESOLVER" - ) - } - } - stage ('Publish build info') { - steps { - rtPublishBuildInfo ( - serverId: "ARTIFACTORY_SERVER" - ) + sh 'mvn package' } } stage('Test the code by using sonarqube') {