Unable to send the mail to Developers and Requestors in the Jenkins pipeline script.

11 views
Skip to first unread message

ravi krishna

unread,
Mar 11, 2020, 10:09:54 PM3/11/20
to Jenkins Users
Hello Folks,

My multibranch pipeline job should send mail to developers and requestors, whenever a build fails. I am using a pipeline script, where I am using the emailext. I have provided the recipientProviders too but failing to send. Below is my pipeline script snippet.

emailext body: '''Hello,
                Host SW build for the ${JOB_BASE_NAME} is failed.
                Please find its URL at ${BUILD_URL}''',
                replyTo: '',
                subject: 'Host SW build for ${JOB_BASE_NAME} is failed',
                recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],


I am getting below error.
"An attempt to send an e-mail to empty list of recipients, ignored."

Can someone help me on this. Thank you.

Regards,
Ravi Krishna D
Reply all
Reply to author
Forward
0 new messages