升级后,CruiseControl.Net构建日志未在CCNet网站上显示

时间:2010-06-23 09:35:38

标签: cruisecontrol.net

我们已经使用CruiseControl.Net几年了,它一直运行良好。但是,自从几周前我们上次升级到最新版本(1.5.0.6237)以来,我们的构建报告未能在ccnet网站上显示。相反,我们得到以下消息:

"BUILD FAILED
Project: TX
Date of build: 2010-06-22 23:41:54
Running time: 00:05:06
Integration Request: Build (ForceBuild) triggered from ScheduleTrigger
Last changed: 2010-06-22 15:14:14
Last log entry: Merge Branches:
Origin=$/Source/RE/Branches/3.1
Version: 2629 [DT-  3652]: Reporting:
Capture tradable duration seperately
Modifications since last build (10)
Checked in Donald.sutherland Trunk/SLP/SLPDatabase/CreateScripts/CreateReportDataStoreTables.sql
Merge Branches: Origin=$/Source/RE/Branches/3.1
Version: 2629 [DT-3652]: Reporting:
Capture tradable duration seperately
2010-06-22 15:14:14
Checked in Donald.sutherland Trunk/SLP/SLPDatabase/Change Scripts/ReportDataStore/RpDataStoreDatabaseChangeScript.sql
Merge Branches: Origin=$/Source/RE/Branches/3.1
Version: 2629 [DT-3652]: Reporting:
Capture tradable duration seperate

应该遵循的是一些错误消息,指出构建失败的原因。无法解析日志文件的网页是“ViewBuildReport.aspx”。为了得到解释,我们的开发团队必须完成整个Build Log xml并搜索失败。

build.config文件附在下面:

<project name="TX" queue="Build" queuePriority="1400">
 <triggers>
  <scheduleTrigger time="21:00" buildCondition="ForceBuild">
   <weekDays>
    <weekDay>Monday</weekDay>
    <weekDay>Tuesday</weekDay>
    <weekDay>Wednesday</weekDay>
    <weekDay>Thursday</weekDay>
    <weekDay>Friday</weekDay>
    <weekDay>Saturday</weekDay>
    <weekDay>Sunday</weekDay>
   </weekDays>
  </scheduleTrigger>
 </triggers>
 <sourcecontrol type="vault" autoGetSource="true" applyLabel="false">
  <executable>c:\program files\sourcegear\vault client\vault.exe</executable>
  <username>build</username>
  <password>*********</password>
  <host>niddrie.dataexplorers.net:8080</host>
  <repository>DXL Source</repository>
  <folder>$/Source/TX/Trunk</folder>
  <ssl>false</ssl>
  <useWorkingDirectory>true</useWorkingDirectory>
  <workingDirectory>D:\Projects\Source\TX\Trunk</workingDirectory>
  <cleanCopy>true</cleanCopy>
  <timeout units="minutes">30</timeout>
 </sourcecontrol>
 <tasks>
  <msbuild>
   <executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
   <workingDirectory>D:\Projects\Source\TX\Trunk</workingDirectory>
   <projectFile>TransactionExplorer.sln</projectFile>
   <buildArgs>/noconsolelogger /p:Configuration=Release /v:diag</buildArgs>
   <targets>Build</targets>
   <timeout>600</timeout>
   <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
  </msbuild>
  <exec>
   <executable>deploy.bat</executable>
   <baseDirectory>D:\Projects\Source\TX\Trunk</baseDirectory>
   <buildArgs>D:\Projects\Source\TX\Trunk D:\MasterWebsite\SfsWebroot\Autobuild\TX</buildArgs>
   <buildTimeoutSeconds>500</buildTimeoutSeconds>
  </exec>
 </tasks>
 <publishers>
  <!-- Mandatory, config file does not work without -->
  <xmllogger logDir="C:\Program Files\CruiseControl.NET\server\TX\Artifacts\buildlogs" />
  &email;
 </publishers>
</project>

正如您所看到的,自从我们升级到最新的CruiseControl版本后,有一个发布者并且配置文件没有更改。最后,在构建期间生成必要的日志文件,因此它似乎是xsd解析或网站本身的问题?生成的构建结果文件如下所示:

  1. C:\ Program Files \ CruiseControl.NET \ server \ TX \ Artifacts \ msbuild-results.xml
  2. C:\ Program Files \ CruiseControl.NET \ server \ TX \ Artifacts \ buildlogs \ log20100622234154.xml
  3. 非常感谢任何有助于实现这一目标的帮助。

1 个答案:

答案 0 :(得分:0)

您检查过电子邮件发布者了吗? CCNET 1.5发生了重大变化。你可以在这里阅读更多内容:

如果我理解你很好,你说你的构建工作正常但是因为你升级失败了,不是吗?你是怎么做升级的?您是否更改了目录/权限?