This commit is contained in:
Naresh 2023-03-14 05:32:35 -04:00
parent 3c3a813bc4
commit f0ea874951

View file

@ -3,18 +3,17 @@ pipeline {
stages {
stage('vcs') {
steps {
git url: 'https://github.com/naresh010203/spring-petclinic.git'
git url: 'https://github.com/naresh010203/spring-petclinic.git',
branch: 'develop'
}
}
stage('build') {
steps {
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn clean package sonar:sonar -Dsonar.organization=nagendra4aa5 -Dsonar.projectKey=nag4a5'
}
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn clean package'
}
stage('post build') {
steps {
archiveArtifacts artifacts: '**/target/*.war',
archiveArtifacts artifacts: '**/target/*.jar',
onlyIfSuccessful: true
}
}