mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
add email notification
This commit is contained in:
parent
85803b1dac
commit
fff622deff
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -20,11 +20,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
branch 'production'
|
branch 'master'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo "DEPLOY!"
|
echo "DEPLOY!"
|
||||||
/* sh './mvnw deploy' */
|
// sh './mvnw deploy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo 'I succeeeded!'
|
echo 'I succeeeded!'
|
||||||
|
mail to: m.augier@me.com, subject: 'Build succeeded: $(JOB_NAME)'
|
||||||
}
|
}
|
||||||
unstable {
|
unstable {
|
||||||
echo 'I am unstable :/'
|
echo 'I am unstable :/'
|
||||||
|
|
Loading…
Reference in a new issue