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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e733f38c-fd2d-47f4-a39a-6f1ff5ea1659%40googlegroups.com.

Reply via email to