CruiseControl:失败后第一次成功构建时的 jabber 通知?
我想设置 jabber 通知以仅报告失败后的第一次成功构建以及成功后的第一次失败构建。是否可以?
I want to set up jabber notifications to report only first successful build after failed, and first failed build after successful. Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 CruiseControl.Net,则可以使用 xmpp 发布者,但不支持仅通知更改类型,例如电子邮件发布者的 ModifierNotificationTypes 的更改类型。
您可以尝试相应地修改XmppPublisher.cs代码或尝试修改ConditionalPublisher。
请参阅以下内容:
XMPP 发布器(GTalk、Jabber 等)
http://jira.public .thoughtworks.org/browse/CCNET-1257
CruiseControl.NET:电子邮件发布者
http://build.subtextproject.com/ccnet/doc/CCNET/Email%20Publisher.html
CruiseControl.NET:条件发布器
http://ccnetlive.thoughtworks.com/ccnet/doc/CCNET/Conditional%20Publisher.html
如果您使用的是 CruiseControl,您可以使用 jabber 发布者,但您必须创建自己的 onchange 发布者,该发布者可以基于成功和/或失败。
请参阅以下内容:
jabber
http://cruisecontrol.sourceforge.net/main/configxml.html# jabber
onsuccess
http://cruisecontrol.sourceforge.net/main/configxml.html #onsuccess
onfailure
http://cruisecontrol.sourceforge.net/main/configxml。 html#onfailure
If you are using CruiseControl.Net, you can use an xmpp publisher but there is no support for only notify on change type like the Email Publisher's ModifierNotificationTypes's Change type.
You can try to modify the XmppPublisher.cs code accordingly or try to modify the ConditionalPublisher.
See the following:
XMPP Publisher (GTalk, Jabber, etc.)
http://jira.public.thoughtworks.org/browse/CCNET-1257
CruiseControl.NET : Email Publisher
http://build.subtextproject.com/ccnet/doc/CCNET/Email%20Publisher.html
CruiseControl.NET : Conditional Publisher
http://ccnetlive.thoughtworks.com/ccnet/doc/CCNET/Conditional%20Publisher.html
If you are using CruiseControl, you can use the jabber publisher but you'll have to create your own onchange publisher which can be based off onsuccess and\or onfailure.
See the following:
jabber
http://cruisecontrol.sourceforge.net/main/configxml.html#jabber
onsuccess
http://cruisecontrol.sourceforge.net/main/configxml.html#onsuccess
onfailure
http://cruisecontrol.sourceforge.net/main/configxml.html#onfailure