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 )