@@ -127,4 +127,13 @@ pipeline {
}
+ post {
+ failure {
+ mail charset: 'UTF-8',
+ subject: "Jenkins build ERROR",
+ mimeType: 'text/html',
+ to: "${mailto}",
+ body: "<b>ATTENTION!!!</b> <b><br> Jenkins job failed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
+ }
@@ -93,4 +93,13 @@ pipeline {