如何向开发人员发送有关构建状态的邮件

时间:2012-10-23 06:32:30

标签: maven jenkins pom.xml

我想在maven build之后发送构建状态邮件。我在pom.xml配置了

<developers>
<developer>
<id>phani</id>
<name>phanikumar</>
<email>phanikumarraja@yahoo.com</email>
<url>http://phani.net</url>
<organization>codeauroara</organization>
<organizationurl>http:/mojocodeaurora.org</organizationurl>
<roles>
<role>Lead</role>
<role>developer</role>
</roles>
</developer>
</developers>

目前,我正在使用jenkins进行自动构建,它正在发送邮件,假设构建失败。 我想做jenkins应该在pom.xml文件中读取pom.xml文件的开发人员列表中的那些人。 这些成员只通过jenkins发送关于构建状态的邮件。

请告诉我是否需要任何插件,或者我需要在pom.xml文件中配置任何邮件列表。

1 个答案:

答案 0 :(得分:1)

也许您可以先查看Jenkins的Mail Server ConfigurationEmail Notification作业的配置。

您还可以使用Jenkins插件: email-ext 来执行更高级的任务。

另请参阅此答案: how to add developers list in pom.xml file.whenever the build fails it will send notifications