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
a373d63bcf
commit
e1b0511492
1 changed files with 18 additions and 20 deletions
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
|
@ -1,30 +1,28 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('No-op') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'ls'
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Package') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
echo ‘I will always execute this!’
|
echo 'One way or another, I have finished'
|
||||||
|
deleteDir() /* clean up our workspace */
|
||||||
|
}
|
||||||
|
success {
|
||||||
|
echo 'I succeeeded!'
|
||||||
|
}
|
||||||
|
unstable {
|
||||||
|
echo 'I am unstable :/'
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
echo 'I failed :('
|
||||||
|
}
|
||||||
|
changed {
|
||||||
|
echo 'Things were different before...'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue