This commit is contained in:
Naresh 2023-03-14 04:40:56 -04:00
parent f2d9c9b63f
commit 3c3a813bc4

22
jenkinsfile Normal file
View file

@ -0,0 +1,22 @@
pipeline {
agent { label 'maven' }
stages {
stage('vcs') {
steps {
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'
}
}
stage('post build') {
steps {
archiveArtifacts artifacts: '**/target/*.war',
onlyIfSuccessful: true
}
}
}
}