mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15: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 {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
agent any
|
||||
stages
|
||||
{
|
||||
stage('Build') {
|
||||
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