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