mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
43e5e0ced1
commit
bb9f4ab901
1 changed files with 25 additions and 7 deletions
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
|
@ -3,7 +3,25 @@ pipeline {
|
|||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
sh 'mvn clean'
|
||||
}
|
||||
}
|
||||
stage('Test'){
|
||||
steps {
|
||||
sh 'mvn test'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
expression { env.BRANCH_NAME == 'master' }
|
||||
}
|
||||
steps {
|
||||
sh 'mvn deploy'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue