diff --git a/Jenkinsfile b/Jenkinsfile index f99323b..49dc1e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,20 +24,7 @@ pipeline { script { utils = new Utils() utils.publish_cobertura_report('**/coverage.xml') - - // Hack to have the 'jenkins build back to normal' mail sent - if (currentBuild.result == null) { - currentBuild.result = 'SUCCESS' - } - if (env.BRANCH_NAME == 'master') { - step([$class: 'Mailer', notifyEveryUnstableBuild: true, - recipients: "manukaz@gmail.com", sendToIndividuals: true]) - } else { - step([$class: 'Mailer', - notifyEveryUnstableBuild: true, - recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], - [$class: 'RequesterRecipientProvider']])]) - } + utils.mail_notify(currentBuild, env, 'manukaz@gmail.com') } } }