Why isn't CruiseControl.NET emailing build and test results?

房东的猫 提交于 2020-01-17 03:34:18

问题


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?


回答1:


Add <includeDetails>true</includeDetails> to the email publisher section.



来源:https://stackoverflow.com/questions/1255751/why-isnt-cruisecontrol-net-emailing-build-and-test-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!