add email notification

This commit is contained in:
Daphné Augier 2020-04-11 18:20:41 +02:00
parent 85803b1dac
commit fff622deff

5
Jenkinsfile vendored
View file

@ -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 :/'