Use extended email to send emails on failed build
This commit is contained in:
parent
5053f377f7
commit
941d5b31b3
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ def sendextemail(extmailinfo) {
|
|||
def recipientProviders = getRecipientProviders(extmailinfo['Recipient providers'])
|
||||
def toList = getToList(extmailinfo['To'])
|
||||
|
||||
if (!toList) {
|
||||
if (toList.length() <= 0) {
|
||||
emailext(
|
||||
subject: "[Jenkins] Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
|
||||
body: '''${JELLY_SCRIPT,template="html"}''',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue