Multibranch workflow pipeline and email notifications

105 views
Skip to first unread message

Vitaly Karasik

unread,
Aug 29, 2018, 8:10:05 AM8/29/18
to Jenkins Users
I'm trying to add Git committers to email notifications in multibranch pipeline job.

emailext body: '${SCRIPT,template="report.template"}', replyTo: '$DEFAULT_REPLYTO', subject: '$PROJECT_NAME: Run: ${TEST_COUNTS,var="total"}, Failed: ${TEST_COUNTS,var="fail"}', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']]

But for some reason Jenkins doesn't get committers emails:

[Pipeline] emailext
An attempt to send an e-mail to empty list of recipients, ignored.

any ideas?

TIA,
Vitaly

Denis Mone

unread,
Aug 29, 2018, 8:21:17 AM8/29/18
to jenkins...@googlegroups.com
I believe Jenkins gather the mail addresses from the commits.
If you have a stage that clones/updates your code see if there are new commits.
If there are not new commits the recipient list will be empty.


--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a34514c4-fbcc-4e11-9b94-583356152345%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vitaly Karasik

unread,
Aug 30, 2018, 9:04:30 AM8/30/18
to Jenkins Users
Denis, thank you.
You're right and "DevelopersRecipientProvider" does provide  comitter's email.
Reply all
Reply to author
Forward
0 new messages