2014-01-13 33 views
0

我准备我们的新CC.NET服务器。在ccnet.config从我们的老构建服务器迁移后,我们建设我们的项目之一时遇到一个错误。 所有使用单一源代码控制元素定义的项目都能正常工作。但是一个依赖于多源控制的项目不会建立。 一个我们配置的提取物:CC.NET&SVN:不能“GetModifications” - 源控制失效

<sourcecontrol type="multi" > 
    <sourceControls> 
    <svn autoGetSource="false"> 
     <trunkUrl>http://sourceserver/svn/projecXYZ/dev/client</trunkUrl> 
     <workingDirectory>C:\dev\projecXYZ\dev\client</workingDirectory> 
     <cleanCopy>false</cleanCopy> 
     <timeout units="hours">1</timeout> 
    </svn> 
    <svn autoGetSource="false"> 
     <trunkUrl>http://sourceserver/svn/projecXYZ/dev/server/include</trunkUrl> 
     <workingDirectory>C:\dev\projecXYZ\dev\server\include</workingDirectory> 
     <cleanCopy>false</cleanCopy> 
     <timeout units="hours">1</timeout> 
    </svn> 
    </sourceControls> 
</sourcecontrol>  

这将导致以下错误:

Source control failure (GetModifications): Value cannot be null. Parameter name: s 

回答

1

您是否在CruiseControl.NET 1.8.4中遇到问题?当试图从升级1.8.3 CruiseControl.NET到CruiseControl.NET 1.8.4,在MultiSourceControl为SVN,我们遇到了它。普通的SVN是可以的。

貌似这个问题是固定在一个补丁5个月前的2013年9月12日。然而,1.8.4在2013年9月1日汇总。应该固定在CruiseControl.NET 1.8.5的下一个版本:

+0

是的,它发生在1.8.4。 我也看到了问题。现在我们正在使用每晚构建 - 我认为它是1.9.48。这“现在解决”了这个问题。 – Herdo

0

我觉得“标签” SVN的任务已经改变。

http://build.sharpdevelop.net/ccnet/doc/CCNET/Subversion%20Source%20Control%20Block.html

<sourcecontrol type="svn"> 
    <trunkUrl>svn://svn.mycompany.com/myfirstproject/trunk</trunkUrl> 
    <workingDirectory>c:\dev\ccnet</workingDirectory> 
</sourcecontrol> 

我会尽量把2简单的文件拷贝你的多块里面,然后移动到SVN。

<filesystem> 
    <!-- Check for changes in the latest 1.2 version of the server... --> 
    <repositoryRoot>\\DistributionFileServer\Server\1.2.latest</repositoryRoot> 
</filesystem> 
+0

不,在''-collection子元素需要像类型:所以正常'''变得'像[文档】在所述(http://build.sharpdevelop.net/ccnet/doc/CCNET/Multi% 20Source%20Control%20Block.html)。我给了''接近一试... – Herdo

+0

好吧,你每天学习新的东西。是的,现在我很好奇。 – granadaCoder