From 7cfd3f2eb89b84f3aa766f462c0349a6b8a476d7 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sat, 20 Nov 2021 21:11:14 +0000 Subject: [PATCH] Use extended email to send emails on failed build --- build/postactions.groovy | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/build/postactions.groovy b/build/postactions.groovy index 3bcb29d..eaa63b4 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -3,8 +3,8 @@ "Build outcomes": { "Success": { "Actions": { - "Deploy doxygen": { - "Description": "Can be empty - Name of doxygen deploy job to run if this build is successful", + "Deploy documentation": { + "Description": "Can be empty - Name of documentation/doxygen deploy job to run if this build is successful", "Job": "HMB_FD_HV_0.9.6/HMB_FD_HV_0.9.6_sg1024_doxygen_deploy" }, "Static analysis": { @@ -121,7 +121,7 @@ def performSuccessfulBuildActions() { } } def String buildselector = "${BUILD_NUMBER}" - deployjob(buildselector, postbuildactions, 'Deploy doxygen', 'DOXYGEN_DEPLOY_JOB') + deployjob(buildselector, postbuildactions, 'Deploy documentation', 'DOXYGEN_DEPLOY_JOB') deployjob(buildselector, postbuildactions, 'Static analysis', 'STATIC_ANALYSIS_JOB') deployjob(buildselector, postbuildactions, 'Unit test', 'UNIT_TEST_JOB') deployjob(buildselector, postbuildactions, 'Regression test', 'REGRESSION_TEST_JOB') @@ -134,21 +134,7 @@ def sendemails(emailtolist) { Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME} : ${BUILD_URL} Console output: ${BUILD_URL}console - -""" -/* - ${GIT_COMMIT} - ${GIT_PREVIOUS_COMMIT} - ${GIT_PREVIOUS_SUCCESSFUL_COMMIT} - ${GIT_BRANCH} - no GIT_LOCAL_BRANCH - ${GIT_CHECKOUT_DIR} - ${GIT_URL} - no GIT_COMMITTER_NAME - no GIT_AUTHOR_NAME - no GIT_COMMITTER_EMAIL - no GIT_AUTHOR_EMAIL -*/ + """ for(emailto in emailtolist) { mail( subject: "[Jenkins] Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",