From e9e0ac3a6c577040033bb4969c0576f5a0bc673d Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 16 Mar 2022 10:48:54 +0100 Subject: [PATCH] now jenkins sends an e-mail to guillaume raffy when the validation fails --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4f7d920..102c2af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,4 +43,12 @@ pipeline { } } } + post + { + // always, success, failure, unstable, changed + failure + { + mail bcc: '', body: "Validation failed
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
Build URL: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "CI build failed for ${env.JOB_NAME}", to: "guillaume.raffy@univ-rennes1.fr"; + } + } }