Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure email notification in Hudson

Tags:

hudson

I am trying to configure Hudson to send an email if a build fails to the person who committed the broken build to SVN.

Question

Is it possible to do this and if so how do I configure Hudson to do it?

like image 791
MBU Avatar asked Jun 14 '10 22:06

MBU


People also ask

In which section of the Jenkins job configuration would you configure email notifications?

Jenkins comes with an out of box facility to add an email notification for a build project. Step 1 − Configuring an SMTP server. Goto Manage Jenkins → Configure System. Go to the E-mail notification section and enter the required SMTP server and user email-suffix details.

In which other areas does the extended email plugin provide Customisation?

It provides customization of three areas: Triggers. Select the conditions that should cause an email notification to be sent. Content.


1 Answers

Yes - in your job configuration, check E-mail Notification under Build Settings near the bottom of the page, and then also check "Send separate e-mails to individuals who broke the build" to have Hudson email the person(s) who committed the SVN changes for a failed build. Note that your Hudson user names will need to match your SVN user names in order for this to work properly.

If you want to have certain people receive email whenever a build breaks or is fixed, regardless of whether they caused the failure, add their email addresses to the Recipients field.

You don't need the email-ext plugin to do this, but that plugin does give you a lot more control over the email format and content.

like image 51
gareth_bowles Avatar answered Oct 14 '22 01:10

gareth_bowles