Email-Ext and Pipeline - How to add Culprits and Developers as recipients?

674 views
Skip to first unread message

Christian Ditscher

unread,
May 2, 2016, 3:36:03 AM5/2/16
to Jenkins Users
Hi,

when using the email-ext plugin in a free-style Job I can select that mails are sent to Culprits and Developers.
When using the plug-in in a pipeline script I don't know how to do this (the snippet generator doesn't offer to check this options.)

--> How can I send mails also to Culprits and Developers using email-ext?

Thanks!

Slide

unread,
May 2, 2016, 9:04:21 AM5/2/16
to Jenkins Users

This is not implemented yet. It's on the list to do.


--
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/5d599cc0-8cb8-4da9-a50c-ef7ad78f3606%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ludovic SMADJA

unread,
May 12, 2016, 11:02:04 AM5/12/16
to jenkins...@googlegroups.com
I add my cent to this feature, we also need it.
--


Ludovic SMADJA
R&D engineer - build process and development
JALIOS SA
http://www.jalios.com

Eddard

unread,
Oct 28, 2016, 5:04:27 AM10/28/16
to Jenkins Users, ludovic...@jalios.com
Same here

Sverre Moe

unread,
Oct 28, 2016, 5:30:00 AM10/28/16
to Jenkins Users, ludovic...@jalios.com
Haven't this been implemented yet?

I am getting Developers and Culprits through emailextrecipients
final def recipients = emailextrecipients([
   
[$class: 'DevelopersRecipientProvider'],
   
[$class: 'CulpritsRecipientProvider'],
   
[$class: 'FirstFailingBuildSuspectsRecipientProvider'],
   
[$class: 'FailingTestSuspectsRecipientProvider']
])

final def subject = "subject"
final def content = "content"
final def replyTo = "nonot...@company.com"
if (recipients != null && !recipients.isEmpty()) {
    mail to: recipients, replyTo: replyTo, subject: subject, body: content
}
Reply all
Reply to author
Forward
0 new messages