Use extended email to send emails on failed build
This commit is contained in:
parent
d7fae344ef
commit
efa290011b
1 changed files with 4 additions and 6 deletions
|
|
@ -151,7 +151,7 @@ def sendemails(emailtolist) {
|
|||
*/
|
||||
for(emailto in emailtolist) {
|
||||
mail(
|
||||
subject: "Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
|
||||
subject: "[Jenkins] Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
|
||||
body: emailbody,
|
||||
to: emailto
|
||||
)
|
||||
|
|
@ -161,15 +161,13 @@ def sendemails(emailtolist) {
|
|||
|
||||
def sendextemail() {
|
||||
emailext(
|
||||
subject: "Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
|
||||
body: """
|
||||
${JELLY_SCRIPT,template="html"}
|
||||
""",
|
||||
subject: "[Jenkins] Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
|
||||
body: '''${JELLY_SCRIPT,template="html"}''',
|
||||
attachLog: true,
|
||||
attachmentsPattern: '',
|
||||
compressLog: false,
|
||||
// from : '',
|
||||
// mimeType: '',
|
||||
mimeType: 'text/html',
|
||||
// postsendScript: '',
|
||||
// presendScript: '',
|
||||
recipientProviders: [culprits(), requestor(), developers()], // Could be: buildUser, culprits, developers, brokenTestsSuspects, brokenBuildSuspects, recipients, requestor, upstreamDevelopers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue