|
@@ -40,7 +40,7 @@ pipeline {
|
|
|
subject: "Jenkins build SUCCESS",
|
|
|
mimeType: 'text/html',
|
|
|
to: "${mailto}",
|
|
|
- body: "<b>ATTENTION!!!</b> <b><br> Jenkins job successed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>Generate certs and key for ${domain}</b> <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
|
|
|
+ body: "<b>ATTENTION!!!</b> <b><br> Jenkins job successed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>Renewal certs and keys</b> <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
|
|
|
}
|
|
|
failure {
|
|
|
mail charset: 'UTF-8',
|
|
@@ -49,12 +49,5 @@ pipeline {
|
|
|
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}"
|
|
|
}
|
|
|
- aborted {
|
|
|
- mail charset: 'UTF-8',
|
|
|
- subject: "Jenkins build ERROR",
|
|
|
- mimeType: 'text/html',
|
|
|
- to: "${mailto}",
|
|
|
- body: "<b>ATTENTION!!!</b> <b><br> Jenkins job aborted.\n\n <b><br> The CNAME ${key_name} is already exists!\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}"
|
|
|
- }
|
|
|
}
|
|
|
}
|