如何在pom.xml文件中添加开发人员列表.每当构建失败时,它将发送通知 [英] how to add developers list in pom.xml file.whenever the build fails it will send notifications

查看:126
本文介绍了如何在pom.xml文件中添加开发人员列表.每当构建失败时,它将发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在使用jenkins进行持续集成,我将poll scm配置了45分钟.每当构建失败时,它将向开发人员发送失败通知.现在我想在pom.xml中配置开发人员列表.从这里,詹金斯应该读取并发送失败通知,提交那些仅应获得失败通知的人的代码.

presently i am using jenkins for continous integration i configured poll scm for 45 minutes.whenever the build fails it is sending failure notification to developers. Now i want in pom.xml to configure developers list. from here the jenkins should read and send failure notification who commit the code that person only should get failure notification.

推荐答案

您需要的是一个名为"email-ext"的插件.
https://wiki.jenkins-ci.org/display/JENKINS/Email -ext + plugin

What you need is a plugin called "email-ext"
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin

安装后,在生成后操作中选中可编辑的电子邮件通知" 然后,您可以选择触发",例如固定",失败"或成功",以及选中标记,这些标记使您可以为每个触发器选择向谁发送电子邮件.

Once installed, in the post-build actions, checkmark "Editable Email Notification" Then, you have a choice of "triggers", for example "Fixed" or "Failure" or "Success", and checkmarks that let you select whom to send the email to for every trigger.

您可以选择发送至:
收件人列表-预定义列表,可以是全局列表或每个触发器
提交者-对此结帐进行SVN更改的提交者
罪魁祸首-自上次成功构建以来进行SVN更改的罪魁祸首
请求者-触发构建的用户

You have the option of sending to:
Recipient list - predefined list, either global or per trigger
Committers - those that made SVN changes for this checkout
Culprits - those that made SVN changes since last successful build
Requester - user that triggers the build

在您的特定情况下,您将需要失败"触发器,并且仅将电子邮件发送给提交者",甚至可能发送给罪犯",并且不要选中收件人列表.

In your particular case, you would want a "Failure" trigger, and send email only to "Committers" and possibly "Culprits", and don't checkmark Recipient list.

这篇关于如何在pom.xml文件中添加开发人员列表.每当构建失败时,它将发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆