mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Update Jenkinsfile
This commit is contained in:
parent
0e83027b08
commit
9b3865b0d1
1 changed files with 21 additions and 11 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -6,16 +6,26 @@ pipeline {
|
||||||
sh './mvnw package'
|
sh './mvnw package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('package') {
|
|
||||||
steps {
|
stage('Package') {
|
||||||
sh './mvnw package'
|
steps {
|
||||||
}
|
sh 'mvn package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'mvn deploy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue