1
我們已經使用CruiseControl.Net幾年了,它一直工作正常。但是,自從我們上個星期前升級到最新版本(1.5.0.6237)以來,我們的構建報告無法顯示在ccnet網站上。相反,我們得到以下信息:CruiseControl.Net版本日誌升級後未在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解析或網站本身的問題?產生構建結果文件列舉如下:
- C:\ Program Files文件\ CruiseControl.NET \服務器\ TX \文物\的MSBuild-results.xml
- C:\ Program Files文件\ CruiseControl.NET \服務器\ TX \ Artifacts \ buildlogs \ log20100622234154.xml
任何幫助得到這個工作將不勝感激。
嗨本傑明,謝謝你的回覆。我們最終使用了一個自定義的xslt來解析結果。似乎升級帶來了xslt破壞,因此我們無法清楚地查看構建結果。 – Chris 2011-04-16 19:42:20