Email-ext plugin: send email to build initiator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Email-ext plugin: send email to build initiator

Sviatoslav Sviridov
Hello,

I have a question about email-ext plugin: is it possible to make this
plugin sending email notifications to the user who triggered the build
(in if the build was started by user)?

Thanks,
Sviatoslav
Reply | Threaded
Open this post in threaded view
|

Re: Email-ext plugin: send email to build initiator

Hendryk Bockelmann
Hey Sviatoslav,

I have exactly the same problem since my colleagues can start jobs in
hudson but do not get an email on the final status.

As a first step I use the Job Exporter Plugin to find the username and
emailaddress of the user that triggered the job - since we use LDAP
authentication for hudson, the correct mail shows as
build.user.emailAddress. But now there is the question how to use this
information in the recipient list of email-ext plugin?

A second option might be given here:
http://kannan.jumbledthoughts.com/index.php/how-to-get-logged-in-username-in-hudson/
if you can use the BUILD_USER name to create the emailaddress, this will
help you.

For me it would be the best to use the information given by LDAP about
the user that triggered the build as the recipient of email-ext plugin.
Does anyone have an idea?


On 03/01/11 18:02, svd wrote:
> Hello,
>
> I have a question about email-ext plugin: is it possible to make this
> plugin sending email notifications to the user who triggered the build
> (in if the build was started by user)?
>
> Thanks,
> Sviatoslav


smime.p7s (7K) Download Attachment