mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
864dc80c95
commit
dcff1586ba
1 changed files with 31 additions and 5 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -1,10 +1,36 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages
|
||||||
stage('Build') {
|
{
|
||||||
steps {
|
stage('Build') {
|
||||||
sh './mvnw package'
|
steps
|
||||||
|
{
|
||||||
|
sh 'mvn clean'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Test'){
|
||||||
|
steps
|
||||||
|
{
|
||||||
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Package'){
|
||||||
|
steps
|
||||||
|
{
|
||||||
|
sh 'mvn package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy'){
|
||||||
|
when
|
||||||
|
{
|
||||||
|
branch 'develop'
|
||||||
|
}
|
||||||
|
steps
|
||||||
|
{
|
||||||
|
sh 'mvn deploy'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue