From 0a8a8a7c77bac34ad450f09fd728ceadd083dece Mon Sep 17 00:00:00 2001 From: Bharatkumar5690 Date: Thu, 9 Mar 2023 19:55:52 +0530 Subject: [PATCH] changes --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b9ae6d335..79422bc21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,6 @@ pipeline { steps { git branch: 'declarative', url: 'https://github.com/Bharatkumar5690/spring-petclinic.git' - sh printenv } } stage('Artifactory configuration') { @@ -34,20 +33,21 @@ pipeline { } } stage('package') { - tools { - jdk 'JDK_17' - } steps { rtMavenRun ( tool: 'MAVEN_DEFAULT', pom: 'pom.xml', goals: 'clean install', - deployerId: "MAVEN_DEPLOYER" + deployerId: "MAVEN_DEPLOYER", + resolverId: "MAVEN_RESOLVER" ) + } + } + stage ('Publish build info') { + steps { rtPublishBuildInfo ( serverId: "ARTIFACTORY_SERVER" ) - //sh "mvn ${params.MAVEN_GOAL}" } } stage('Test the code by using sonarqube') {