为什么CruiseControl.NET电子邮件的构建和测试结果? [英] Why isn't CruiseControl.NET emailing build and test results?
本文介绍了为什么CruiseControl.NET电子邮件的构建和测试结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< publishers>
< merge>
< files>
< file> C:\Tests\ * *结果* .xml< / file>
< file> C:\Artifacts\ *< / file>
< / files>
< / merge>
< xmllogger logDir =C:\Build Logs/>
< email from =ContinuousIntegrationServer@test.commailhost =mail.test.com>
< groups>
< group name =alwaysNotify>
< notification>
< notificationType>始终< / notificationType>
< / notification>
< / group>
< group name =notifyOnFail>
< notification>
< notificationType>失败< / notificationType>
< / notification>
< / group>
< / groups>
< users>
< user name =megroup =alwaysNotifyaddress =me@test.com/>
< / users>
< xslFiles>
< file> xsl\header.xsl< / file>
< file> xsl\compile.xsl< / file>
< file> xsl\unittests.xsl< / file>
< file> xsl\modifications.xsl< / file>
< / xslFiles>
< / email>
< / publishers>
当我收到一封电子邮件告诉我,该版本是否成功,
CruiseControl.NET构建项目测试结果(http:// CISERVER1 / ccnet)
为什么构建信息和测试结果不包含在正文中?
解决方案
将< includeDetails> true< / includeDetails>
添加到电子邮件发布者部分。
I'm using CruiseControl.NET with NUnit and NAnt. I'm trying to get CC.net to send out emails that contain the styled test results and build information. My config file looks like this:
<publishers>
<merge>
<files>
<file>C:\Tests\*Results*.xml</file>
<file>C:\Artifacts\*</file>
</files>
</merge>
<xmllogger logDir="C:\Build Logs" />
<email from="ContinuousIntegrationServer@test.com" mailhost="mail.test.com">
<groups>
<group name="alwaysNotify">
<notification>
<notificationType>Always</notificationType>
</notification>
</group>
<group name="notifyOnFail">
<notification>
<notificationType>Failed</notificationType>
</notification>
</group>
</groups>
<users>
<user name="me" group="alwaysNotify" address="me@test.com"/>
</users>
<xslFiles>
<file>xsl\header.xsl</file>
<file>xsl\compile.xsl</file>
<file>xsl\unittests.xsl</file>
<file>xsl\modifications.xsl</file>
</xslFiles>
</email>
</publishers>
When I get an email telling me that the build was successful, there is only this in the body:
CruiseControl.NET Build Results for project test (http://CISERVER1/ccnet)
Why isn't the build information and the test results included in the body?
解决方案
Add <includeDetails>true</includeDetails>
to the email publisher section.
这篇关于为什么CruiseControl.NET电子邮件的构建和测试结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文