From 12c6b71a8ffe0d7ddb449900ee3dd25e9907feec Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Fri, 19 Nov 2021 23:55:48 +0000 Subject: [PATCH] Add failed build action --- build/postactions.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/postactions.groovy b/build/postactions.groovy index c5cc90c..3007acf 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -128,12 +128,12 @@ def performSuccessfulBuildActions() { def sendemails(emailtolist) { def emailbody = """ - Failed build: ${JOBNAME} ${BUILD_DISPLAY_NAME} : ${BUILD_URL} + Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME} : ${BUILD_URL} """ for(emailto in emailtolist) { mail( - subject: "Failed build: ${JOBNAME} ${BUILD_DISPLAY_NAME}", + subject: "Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}", body: emailbody, to: emailto )