Use extended email to send emails on failed build

This commit is contained in:
Dan Hawkins 2021-11-21 09:44:35 +00:00
commit 5053f377f7

View file

@ -192,7 +192,7 @@ def sendextemail(extmailinfo) {
def recipientProviders = getRecipientProviders(extmailinfo['Recipient providers'])
def toList = getToList(extmailinfo['To'])
if (toList.size() == 0) {
if (!toList) {
emailext(
subject: "[Jenkins] Failed build: ${JOB_NAME} ${BUILD_DISPLAY_NAME}",
body: '''${JELLY_SCRIPT,template="html"}''',