diff --git a/Jenkinsfile b/Jenkinsfile index ad21789cb..31b49abdf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -64,11 +64,12 @@ if (env.GIT_COMMITTER_EMAIL) { if (buildError) { status = 'Failed' + body += "\n\nError: ${buildError.getMessage()}" } else { status = 'Success' } - email( + mail( to: env.GIT_COMMITTER_EMAIL, subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})", body: body