1

当我尝试通过 Cruise Control 构建项目时,出现以下错误:

BUILD EXCEPTION
Error Message:  System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number,               NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToUInt64(String value)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Project:    TRPMonitor 5.2.0 10G 11G
Date of build:  2012-06-07 13:53:26
Running time:   00:00:03
Integration Request:    Build (ForceBuild) triggered from COREBUILDER

我将 TortoiseSvn 的版本从 1.6 更改为 1.7,并将 svn 命令行从 1.6 更新为 1.7。我怎样才能让我的项目再次构建?

谢谢!

PS我去了这里:http: //jira.public.thoughtworks.org/browse/CCNET-634 和这里:http ://comments.gmane.org/gmane.comp.windows.dotnet.ccnet.user/6126 但是它没有解决我的问题。

  • 编辑 -

在 CCnet.log 中,我发现了这个(在将所有文件更新到 svn 1.7 之后):

2012-06-07 15:16:45,579 [72:INFO] Project: 'TRPMonitor 5.2.0 10G 11G' is added to queue: 'TRPMonitor 5.2.0 10G 11G' in position 0. Requestsource : COREBUILDER ()
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:INFO] Queue: 'TRPMonitor 5.2.0 10G 11G' is attempting to be in-use, trying to lock related queues
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:INFO] Project: 'TRPMonitor 5.2.0 10G 11G' is first in queue: 'TRPMonitor 5.2.0 10G 11G' and shall start integration.
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Checking if C:\REP\TRUNKS_5.2.0\TRPMonitor\trunks_5.01.1 is a svn working folder
2012-06-07 15:16:45,594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Starting process [C:\Program Files\svn-win32-1.7.5\svn.exe] in working directory [C:\REP\TRUNKS_5.2.0\TRPMonitor\trunks_5.01.1] with arguments [info http://xx.xx.xxx.xx/svn/svn-payments-core/ --username XXXXXXXX --password ******** --no-auth-cache --non-interactive --xml]
594 [TRPMonitor 5.2.0 10G 11G:DEBUG] Not setting PriorityClass on [C:\Program Files\svn-win32-1.7.5\svn.exe] to default Normal
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <?xml version="1.0" encoding="UTF-8"?>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <info>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <entry
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    path="svn-payments-core"
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    revision="75905"
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    kind="dir">
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <url>http://xx.xx.xxx.xx/svn/svn-payments-core</url>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <repository>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <root>http://xx.xx.xxx.xx/svn/svn-payments-core</root>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <uuid>12d69269-45e3-204f-b74b-a9c2047a3d92</uuid>
2012-06-07 15:16:45,844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </repository>
2012-06-07 15:16:45,844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <commit
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe]    revision="75905">
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <author>XXXXXX</author>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] <date>2012-06-07T19:15:34.949697Z</date>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </commit>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </entry>
844 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] </info>
954 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] standard-error stream closed -- null received in event
954 [4:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] standard-output stream closed -- null received in event
969 [72:DEBUG] [TRPMonitor 5.2.0 10G 11G C:\Program Files\svn-win32-1.7.5\svn.exe] process exited event received
985 [TRPMonitor 5.2.0 10G 11G:WARN] Source control failure (GetModifications): Input string was not in a correct format.

似乎错误来自SVN命令行...

4

1 回答 1

2

查看 svn 1.7的发行说明,元数据的存储方式似乎发生了变化(而不是多个 .svn 文件夹,现在只有一个。)尝试删除构建框上的所有源代码并让 ccnet重新拉一切。

于 2012-06-07T18:44:53.547 回答