每次巡航控制检查TFS修改时,我们都会收到以下错误:
BUILD EXCEPTION
Error Message: System.FormatException: Die Zeichenfolge wurde nicht als gültiges
DateTime erkannt. bei System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi,
DateTimeStyles styles) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser.ParseChangeSet(StringBuilder
changeSet) bei ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser.Parse(TextReader
vstsLog, DateTime from, DateTime to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.GetModifications(IIntegrationResult from,
IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging
(ISourceControl sc, IIntegrationResult from, IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl
sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild) bei
ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from,
IIntegrationResult to) bei
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Project: JW.Consumer.DB
Date of build: 2011-03-01 08:56:13
Running time: 00:00:01
Integration Request: Build (IfModificationExists) triggered from continuous
强制构建效果很好。 我们使用TFS 2010和CC.Net 1.6 我们的ccnet.config看起来像这样:
<sourcecontrol type="vsts" >
<server>http://tfsserver1:8080/tfs</server>
<project>$/ProjectXy</project>
<workingDirectory>C:\WorkingDir</workingDirectory>
<cleanCopy>false</cleanCopy>
<autoGetSource>true</autoGetSource>
<force>true</force>
<deleteWorkspace>false</deleteWorkspace>
</sourcecontrol>
<triggers>
<intervalTrigger name="continuous" seconds="300" buildCondition="IfModificationExists" initialSeconds="30" />
</triggers>
有人知道解决方案吗?