diff --git a/build/postactions.groovy b/build/postactions.groovy index 27a843e..5846d01 100644 --- a/build/postactions.groovy +++ b/build/postactions.groovy @@ -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"}''',