0

我刚刚在 Apache+Mono 下设置了 Cruisecontrol.Net 服务器,并将源控制指向我的 GitHub 项目。我提交并推送了它,但 CC 没有检测到更改,即使它在输出中报告了这些更改:

[MyProject:INFO] [Git] Calling git log origin/test --date-order --name-status -c "--after=Fri, 29 Jun 2012 12:19:25 GMT" "--before=Fri, 29 Jun 2012 13:12:24 GMT" --pretty=format:"Commit:%H%nTime:%ci%nAuthor:%an%nE-Mail:%ae%nMessage:%s%n%n%b%nChanges:"
[MyProject:DEBUG] Starting process [git] in working directory [/home/ccnet/MyProject/build] with arguments [log origin/test --date-order --name-status -c "--after=Fri, 29 Jun 2012 12:19:25 GMT" "--before=Fri, 29 Jun 2012 13:12:24 GMT" --pretty=format:"Commit:%H%nTime:%ci%nAuthor:%an%nE-Mail:%ae%nMessage:%s%n%n%b%nChanges:"]
[MyProject:DEBUG] Not setting PriorityClass on [/home/ccnet/MyProject/build/git] to default Normal
[511:DEBUG] [MyProject git] process exited event received
[509:DEBUG] [MyProject git] Commit:3d386b1277003c83c63e7e13bde2803bfe952d40
[509:DEBUG] [MyProject git] Time:2012-06-29 14:00:34 +0100
[510:DEBUG] [MyProject git] standard-error stream closed -- null received in event
[509:DEBUG] [MyProject git] Author:Robin Elvin
[509:DEBUG] [MyProject git] E-Mail:rob@-------.com
[509:DEBUG] [MyProject git] Message:Merge branch 'master' into test
[509:DEBUG] [MyProject git]
[509:DEBUG] [MyProject git]
[509:DEBUG] [MyProject git] Changes:
[509:DEBUG] [MyProject git]
[509:DEBUG] [MyProject git] Commit:fc134027f059a1dada0295bbd2d04cbea6eeb57b
[509:DEBUG] [MyProject git] Time:2012-06-29 14:00:24 +0100
[509:DEBUG] [MyProject git] Author:Robin Elvin
[509:DEBUG] [MyProject git] E-Mail:rob@-------.com
[509:DEBUG] [MyProject git] Message:Set complete status on sync and fix tests (issue #2 #3)
[509:DEBUG] [MyProject git]
[509:DEBUG] [MyProject git]
[509:DEBUG] [MyProject git] Changes:
[509:DEBUG] [MyProject git] M       File1
[509:DEBUG] [MyProject git] M       File2
[509:DEBUG] [MyProject git] M       File3
[507:DEBUG] [MyProject git] standard-output stream closed -- null received in event
[MyProject:INFO] No modifications detected.

这是我的配置中的相关块:

<sourcecontrol type="git">
<repository>git@github.com:xxxx/MyProject.git</repository>
<branch>test</branch>
<workingDirectory>/home/ccnet/MyProject/build</workingDirectory>
<autoGetSource>true</autoGetSource>
</sourcecontrol>
<triggers>
<intervalTrigger name="continuous" seconds="30" buildCondition="IfModificationExists"/>
</triggers>

这可能是什么原因造成的?

4

2 回答 2

4

git 源代码控制提供程序中存在一个错误,导致 ccnet 无法检测 git 合并提交。

只需升级到最新的 ccnet 版本 (1.8.x) 即可解决您的问题。

于 2012-10-25T10:31:03.310 回答
0

好吧,我做了另一个提交并推送,这触发了构建。

不知道为什么以前没有。会继续检查以防它是一个错误。

于 2012-06-29T14:32:59.293 回答