diff --git a/Jenkinsfile b/Jenkinsfile index dc517ca26..b155c920d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,16 +60,16 @@ try { if (env.GIT_COMMITTER_EMAIL) { def status - def body = "
Check status at ${env.BUILD_URL}
" + def body = "Check status at ${env.BUILD_URL}" if (buildError) { status = 'Failed' - body += "${buildError.getMessage()}
" + body += "\n\n${buildError.getMessage()}" } else { status = 'Success' } - emailext( + email( to: env.GIT_COMMITTER_EMAIL, subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})", body: body