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"; + } + } }