所以,我的CruiseControl.net项目有这个奇怪的问题。我有一个ccnet.config文件,它从我的bitbucket仓库中取出,运行基本构建,然后运行一些单元测试,然后最终将测试的文件复制到webroot。看起来很基本,即使是我第一次使用CC.Net。CruiseControl.net和cronTrigger
我当然会在我提交的时候运行它。如果无法编写某种网页,bitbucket可以通过它的服务框架调用,我决定让CC运行预定版本,并且只有在源代码管理发生变化时才运行完整版本。
经过一番谷歌搜索后,我发现在1.6版本中,它有一个cronTrigger。完全是我需要的。所以,我下面的块添加到我的配置:
<cronTrigger>
<cronExpression>*/5 * * * *</cronExpression>
</cronTrigger>
然后它会触发罚款,但后来我得到这个在控制台一个循环:
[HMS:INFO] Calling hg log -r tip --template {rev} --noninteractive
[HMS:DEBUG] Starting process [C:\Program Files (x86)\TortoiseHg\hg.exe] in working directory [C:\build\hms\src] with arguments [log -r tip --template {rev} --noninteractive]
[HMS:DEBUG] Not setting PriorityClass on [C:\Program Files (x86)\TortoiseHg\hg.exe] to default Normal
[8:DEBUG] [HMS C:\Program Files (x86)\TortoiseHg\hg.exe] standard-error stream closed -- null received in event
[7:DEBUG] [HMS C:\Program Files (x86)\TortoiseHg\hg.exe] 60
[7:DEBUG] [HMS C:\Program Files (x86)\TortoiseHg\hg.exe] standard-output streamclosed -- null received in event
[3:DEBUG] [HMS C:\Program Files (x86)\TortoiseHg\hg.exe] process exited event received
[HMS:INFO] No modifications detected.
这个循环继续,直到我进去删除cronTrigger
块。我真的不想让这件事情忙碌 - 等待我的服务器进行更改,并且我确信BitBucket不会在每秒发出几个请求时微笑。
所以,简而言之,我该如何阻止这个事情从猥亵bitbucket?停止使用CC.Net?让自己击中“构建”按钮?
另外:参考我的ccnet.config文件:http://pastebin.com/6jSPxVTk