2009-08-10 21 views
0

我使用NUnit和NAnt的CruiseControl.NET。我試圖讓CC.net發送包含樣式化測試結果和構建信息的電子郵件。我的配置文件看起來像這樣:爲什麼不是CruiseControl.NET通過電子郵件發送構建和測試結果?

<publishers> 
     <merge> 
      <files> 
       <file>C:\Tests\*Results*.xml</file> 
       <file>C:\Artifacts\*</file> 
      </files> 
     </merge> 
     <xmllogger logDir="C:\Build Logs" /> 
     <email from="[email protected]" 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="[email protected]"/> 
     </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 Build Results for project test (http://CISERVER1/ccnet) 

爲什麼不是構建信息和測試結果包含在身體內?

+0

日誌中是否有任何內容?我的猜測是一個或多個XSL文件無法找到或者被破壞... – 2009-08-10 16:05:22

回答

3

<includeDetails>true</includeDetails>添加到電子郵件發佈者部分。

+1

我發現使用屬性includeDetails =「TRUE」也可以。感謝您的快速響應。 – 2009-08-12 12:31:06

相關問題