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
eb20a31a7c
commit
a311a14e2a
1 changed files with 17 additions and 0 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -7,5 +7,22 @@ pipeline {
|
||||||
sh './mvnw package'
|
sh './mvnw package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
echo 'Package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
if (env.BRANCH_NAME == 'master') {
|
||||||
|
steps {
|
||||||
|
echo 'Deploy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue