Jenkins notifications on failure
This commit is contained in:
parent
4af9e47c8d
commit
5078775a74
|
@ -64,11 +64,12 @@ if (env.GIT_COMMITTER_EMAIL) {
|
||||||
|
|
||||||
if (buildError) {
|
if (buildError) {
|
||||||
status = 'Failed'
|
status = 'Failed'
|
||||||
|
body += "\n\nError: ${buildError.getMessage()}"
|
||||||
} else {
|
} else {
|
||||||
status = 'Success'
|
status = 'Success'
|
||||||
}
|
}
|
||||||
|
|
||||||
email(
|
mail(
|
||||||
to: env.GIT_COMMITTER_EMAIL,
|
to: env.GIT_COMMITTER_EMAIL,
|
||||||
subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})",
|
subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})",
|
||||||
body: body
|
body: body
|
||||||
|
|
Loading…
Reference in New Issue