Skip to content

Commit

Permalink
Change format of mailer for error handling in jenkins pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Packard committed Aug 12, 2016
1 parent 7f3c822 commit 9449859
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 9449859

Please sign in to comment.