This commit is contained in:
Bharatkumar5690 2023-03-09 19:55:52 +05:30
parent 585d581706
commit 0a8a8a7c77

12
Jenkinsfile vendored
View file

@ -9,7 +9,6 @@ pipeline {
steps { steps {
git branch: 'declarative', git branch: 'declarative',
url: 'https://github.com/Bharatkumar5690/spring-petclinic.git' url: 'https://github.com/Bharatkumar5690/spring-petclinic.git'
sh printenv
} }
} }
stage('Artifactory configuration') { stage('Artifactory configuration') {
@ -34,20 +33,21 @@ pipeline {
} }
} }
stage('package') { stage('package') {
tools {
jdk 'JDK_17'
}
steps { steps {
rtMavenRun ( rtMavenRun (
tool: 'MAVEN_DEFAULT', tool: 'MAVEN_DEFAULT',
pom: 'pom.xml', pom: 'pom.xml',
goals: 'clean install', goals: 'clean install',
deployerId: "MAVEN_DEPLOYER" deployerId: "MAVEN_DEPLOYER",
resolverId: "MAVEN_RESOLVER"
) )
}
}
stage ('Publish build info') {
steps {
rtPublishBuildInfo ( rtPublishBuildInfo (
serverId: "ARTIFACTORY_SERVER" serverId: "ARTIFACTORY_SERVER"
) )
//sh "mvn ${params.MAVEN_GOAL}"
} }
} }
stage('Test the code by using sonarqube') { stage('Test the code by using sonarqube') {