如何在CruiseControl.net中发送包含svn提交消息和其他详细信息的电子邮件? [英] How do I send an email in CruiseControl.net that contains the svn commit messages and other details?
问题描述
我想通过电子邮件发送生成的结果:
I'd like to email the results of the build along with:
- svn修订版本, / li>
- 提交这些修订版本的邮件
- 其他详细信息,例如我们ftp生成的可执行文件的位置
任何人都可以指定资源来显示如何使用CC.Net这样做?
Can anyone point me to resources to show how to do this with CC.Net?
获取包含更改列表的标准电子邮件,但我没有办法修改电子邮件的内容。我不想发送多封电子邮件。
I am able to get the standard email that is sent that contains a list of changes, but I see no way to modify the contents of the email. I don't want to send multiple emails.
看起来我需要设置xslFiles,但是我不清楚如何做或者他们应该看像。
It looks like I need to set xslFiles, but it is not clear to me how to do that or what they should look like.
推荐答案
每个CC.NET项目都有一个publishers部分。其中一个发布商可以是电子邮件。示例如下:
Each CC.NET project has a "publishers" section. One of the publishers can be "email". Example follows:
<publishers>
<xmllogger ... />
<buildpublisher>
<sourceDir></sourceDir>
<publishDir></publishDir>
<useLabelSubDirectory>True</useLabelSubDirectory>
</buildpublisher>
<email from="buildmaster@mycompany.com" mailhost="mail.mycompany.com" mailhostPassword="..." mailhostUsername="buildmaster" includeDetails="True">
<users>
<user name="Petros Amiridis" address="amiridis@mycompany.com" group="buildmaster" />
</users>
<groups>
<group name="developers" notification="Always" />
<group name="buildmaster" notification="Always" />
<group name="consultants" notification="Always" />
</groups>
</email>
</publishers>
此电子邮件包含构建标签,svn更改集和提交消息。
This email contains the build label, the svn changeset and the commit message.
您可以详细了解电子邮件发布商CruiseControl.NET文档
这篇关于如何在CruiseControl.net中发送包含svn提交消息和其他详细信息的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!