From fff622deff9c9584ae47b4f19f7485a1b40e5edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Augier?= Date: Sat, 11 Apr 2020 18:20:41 +0200 Subject: [PATCH] add email notification --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b25333441..d407fd2d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 :/'