Configure email notification in Hudson

匿名 (未验证) 提交于 2019-12-03 01:31:01

问题:

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?

回答1:

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.



回答2:

Yes, it is possible, and I do this in my organization. See:
http://wiki.hudson-ci.org/display/HUDSON/Email-ext+plugin

quoting:
This plugin allows you to configure every aspect of email notifications. You can customize when an email is sent, who should receive it, and what the email says.

This plugin extends Hudson's built in email notification functionality by giving you more control. It provides customization of 3 areas.



The trigger you want to select is the "Failure" trigger, and be sure to check the "Send to Committers" checkbox.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!