Use extended email to send emails on failed build
This commit is contained in:
parent
0469b404b1
commit
7cfd3f2eb8
1 changed files with 4 additions and 18 deletions
|
|
@ -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 = "<SpecificBuildSelector plugin='copyartifact@1.46.2'><buildNumber>${BUILD_NUMBER}</buildNumber></SpecificBuildSelector>"
|
||||
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}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue