now jenkins sends an e-mail to guillaume raffy when the validation fails

This commit is contained in:
Guillaume Raffy 2022-03-16 10:48:54 +01:00
parent 50c145e491
commit e9e0ac3a6c
1 changed files with 8 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -43,4 +43,12 @@ pipeline {
} }
} }
} }
post
{
// always, success, failure, unstable, changed
failure
{
mail bcc: '', body: "<b>Validation failed</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br>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";
}
}
} }