diff --git a/Jenkinsfile b/Jenkinsfile index bf2945d..ed94faa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,8 +62,6 @@ def handleError(String message){ echo "${message}" currentBuild.setResult("FAILED") slackSend color: 'danger', message: "${message}" - withCredentials([[$class: 'FileBinding', credentialsId: 'email-error-id', variable: 'EMAIL']]) { - step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'EMAIL', sendToIndividuals: true]) - } + step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "$email-error-id", sendToIndividuals: true]) sh 'exit 1' }