ccnet在将更改提交到svn时不触发构建

时间:2009-03-26 07:45:38

标签: svn build-process cruisecontrol.net

ccnet存在问题。即使将更改提交到SVN,服务器也无法检测到修改。任何人都可以帮忙解决这个问题吗?


以下是巡航的配置文件:

       项目     http://cruise01/ccnet                 

<sourcecontrol type="svn">
  <trunkUrl>http://svn01.com/abc/Project/trunk</trunkUrl>
  <workingDirectory>E:\Project\trunk</workingDirectory>
  <username>abc</username>
  <password>abcd</password>
  <timeout>36000000</timeout>
  <autoGetSource>true</autoGetSource>
  <tagOnSuccess>false</tagOnSuccess>
</sourcecontrol>

<tasks>
  <nant>
    <executable>E:\Project\trunk\tools\Nant\bin\NAnt.exe</executable>
    <buildFile>E:\Project\trunk\dev\build\Project.build</buildFile>
    <baseDirectory>E:\Project\trunk\dev\build</baseDirectory>
    <buildTimeoutSeconds>36000000</buildTimeoutSeconds>
    <logger>NAnt.Core.XmlLogger</logger>
    <targetList>
      <target>cruise</target>
    </targetList>
  </nant>
</tasks>
<publishers>
  <merge>
    <files>
      <file>E:\Project\trunk\dev\build\output\*.xml</file>
    </files>
  </merge>
  <xmllogger />
  <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="100" />
</publishers>


ccnet日志如下:

2009-03-25 23:13:5593 [CCNet服务器:INFO]注册频道:tcp 2009-03-25 23:13:5593 [CCNet服务器:INFO] CruiseManager:侦听网址:tcp://10.7.5.98:21234 / CruiseManager.rem 2009-03-25 23:13:5593 [CCNet服务器:INFO]启动CruiseControl.NET服务器 2009-03-25 23:13:55,109 [项目:信息]项目启动集成商:项目 2009-03-25 23:14:5546 [项目:信息]项目:'项目'被添加到队列:'项目'在位置0。 2009-03-25 23:14:56,093 [项目:信息]项目:'项目'排在第一位:'项目'并开始整合。 2009-03-25 23:14:56,796 [项目:DEBUG] http://svn01.com/abc/Project/trunk/dev 2009-03-25 23:14:56,812 [Project:DEBUG]在工作目录[E:\ Project \ trunk \ dev]中启动进程[svn.exe],参数为[log http://svn01.com/abc/Project/trunk/dev -r“{2009- 03-25T17:27:24Z}:{2009-03-25T17:44:56Z}“ - verbose --xml --username abc --password abcd --non-interactive --no-auth-cache] 2009-03-25 23:14:56,968 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,968 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,968 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] tm 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] 2009-03-25T17:16:09.658217Z 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] /Project/trunk/dev/build/ccnet.config 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] fix build [jerry&amp;汤姆] 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:56,984 [468:DEBUG] [Project svn.exe] 2009-03-25 23:14:57,078 [项目:DEBUG] http://svn01.com/abc/Project/trunk/tools 2009-03-25 23:14:57,078 [Project:DEBUG]在工作目录[E:\ Project \ trunk \ tools]中启动进程[svn.exe],参数为[log http://svn01.com/abc/Project/trunk/tools -r“{2009- 03-25T17:27:24Z}:{2009-03-25T17:44:56Z}“ - verbose --xml --username abc --password abcd --non-interactive --no-auth-cache] 2009-03-25 23:14:57,250 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:14:57,250 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:14:57,250 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:14:57,359 [项目:DEBUG]没有找到。 2009-03-25 23:14:57,359 [项目:信息]未检测到任何修改。 2009-03-25 23:15:57,406 [项目:信息]项目:'项目'被添加到队列:'项目'在位置0。 2009-03-25 23:15:57,515 [项目:信息]项目:'项目'排在第一位:'项目'并开始整合。 2009-03-25 23:15:57,515 [项目:DEBUG] http://svn01.com/abc/Project/trunk/dev 2009-03-25 23:15:57,515 [Project:DEBUG]在工作目录[E:\ Project \ trunk \ dev]中启动进程[svn.exe],参数为[log http://svn01.com/abc/Project/trunk/dev -r“{2009- 03-25T17:27:24Z}:{2009-03-25T17:45:57Z}“--verbose --xml --username abc --password abcd --non-interactive --no-auth-cache] 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] tm 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] 2009-03-25T17:17:54.682187Z 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,656 [1560:DEBUG] [Project svn.exe] /Project/trunk/dev/build/ccnet.config 2009-03-25 23:15:57,671 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,671 [1560:DEBUG] [Project svn.exe] fix build [jerry&amp;汤姆] 2009-03-25 23:15:57,671 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,671 [1560:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,565 [项目:DEBUG] http://svn01.com/abc/Project/trunk/tools 2009-03-25 23:15:57,565 [Project:DEBUG]在工作目录[E:\ Project \ trunk \ tools]中启动进程[svn.exe],带参数[log http://svn01.com/abc/Project/trunk/tools -r“{2009- 03-25T17:27:24Z}:{2009-03-25T17:45:57Z}“--verbose --xml --username abc --password abcd --non-interactive --no-auth-cache] 2009-03-25 23:15:57,921 [468:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,921 [468:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,921 [468:DEBUG] [Project svn.exe] 2009-03-25 23:15:57,531 [项目:DEBUG]没有找到。 2009-03-25 23:15:57,531 [项目:信息]未检测到任何修改。

2 个答案:

答案 0 :(得分:2)

当我们的颠覆和构建服务器的时钟超过10分钟时,我们遇到了类似的问题。值得检查以消除它作为一个潜在的问题。

答案 1 :(得分:1)

显然CC.NET认为没有任何修改,所以你可以做的一件事是从命令行发出CC.NET的svn log命令:

svn log http://svn01.com/abc/Project/trunk/dev -r "{2009-03-25T17:27:24Z}:{2009-03-25T17:45:57Z}" --verbose --xml --username abc --password abcd --non-interactive --no-auth-cache]

你会注意到的一件事是那里的时代。如果您希望看到的任何更改在此期间之前发生,则它们将不会显示。看起来CC.NET只回顾过去的18分钟。如果您在系统运行时办理登机手续怎么办?它还没有认出来吗?