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') {
when {
branch 'production'
branch 'master'
}
steps {
echo "DEPLOY!"
/* sh './mvnw deploy' */
// sh './mvnw deploy'
}
}
}
@ -35,6 +35,7 @@ pipeline {
}
success {
echo 'I succeeeded!'
mail to: m.augier@me.com, subject: 'Build succeeded: $(JOB_NAME)'
}
unstable {
echo 'I am unstable :/'