mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
new one
This commit is contained in:
parent
f2d9c9b63f
commit
3c3a813bc4
1 changed files with 22 additions and 0 deletions
22
jenkinsfile
Normal file
22
jenkinsfile
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue