|
@@ -16,11 +16,6 @@ pipeline {
|
|
|
CLUSTER_NAME='dev-iru-swarm.infoclinica.lan'
|
|
|
}
|
|
|
parameters {
|
|
|
- string(
|
|
|
- name: "repo",
|
|
|
- defaultValue: "prod",
|
|
|
- description: "Repository to build and/or deploy from."
|
|
|
- )
|
|
|
string(
|
|
|
name: "mailto",
|
|
|
defaultValue: "tomishinets.v@sdsys.ru",
|
|
@@ -144,7 +139,22 @@ pipeline {
|
|
|
}
|
|
|
post {
|
|
|
always {
|
|
|
+ echo "CleaningUp work directory"
|
|
|
deleteDir()
|
|
|
}
|
|
|
+ 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}"
|
|
|
+ }
|
|
|
+ success {
|
|
|
+ mail charset: 'UTF-8',
|
|
|
+ subject: "Jenkins build SUSCCESS",
|
|
|
+ mimeType: 'text/html',
|
|
|
+ to: "${mailto}",
|
|
|
+ body: "<b>Congradulations!!!</b> <b><br> Jenkins job succefully finished.\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}"
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
+}
|