CCnet +不超时

发布于 2024-10-04 12:57:26 字数 1166 浏览 8 评论 0原文

我无法通过 Nant 执行 Nunit 测试,而 Nant 又由 CCNet 调用。 以下是我在 CCnet 仪表板中收到的错误消息:

<异常>

我查看了 CCnet.log 文件,但没有找到有关上述活动的任何信息。 注意:我可以在命令行中通过 Nant 执行 Nunit。但只有当我尝试通过 CCnet 执行时才会失败。 请帮我解决这个问题。

I am unable to execute Nunit test through Nant which in turn is called by CCNet.
Below is the Error msg which i get in CCnet Dashboard:

<exception>
<![CDATA[ThoughtWorks.CruiseControl.Core.Tasks.BuilderException:
NAnt process timed out (after 900
seconds) at
ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Execute(IIntegrationResult
result) at
ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult
result) at
ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask
task, IIntegrationResult result,
Boolean isPublisher) at
ThoughtWorks.CruiseControl.Core.Project.RunTasks(IIntegrationResult
result, IList tasksToRun, Dictionary`2
parameterValues) at
ThoughtWorks.CruiseControl.Core.Project.Run(IIntegrationResult
result) at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult
result) at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest
request) BaseDirectory: , Targets: ,
Executable:
D:/AutomatedTestSuite/src/Automated
Testing/setup/SupportingTools/NAnt/bin/nant.exe,
BuildFile:
"D:/AutomatedTestSuite/src/Automated
Testing/setup/Practicemanagementsetup/practice_nunittestrunner.build"]]>
</exception>

I looked in CCnet.log file but did't find any info about the above activity.
Note: I am able to execute Nunit through Nant in command line. But it fails only when i try to execute through CCnet.
Please help me on this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挖个坑埋了你 2024-10-11 12:57:26

发生这种情况有两个可能的原因:

根据 NAnt 任务花费的时间,900 秒(15 分钟)可能还不够 - 尽管我当然希望如此!如果是这种情况,编辑 ccnet-config 文件并设置 buildTimeoutSeconds 值应该可以解决问题。 (有关详细信息,请参阅 NAnt 任务 文档)。

另一种可能(或许更可能)是 NAnt 任务无法识别 NAnt 进程已完成。这是某些版本的 CCNet 的已知问题 - 请参阅 CCNET-1735 和 CCNET-1789。您可能会发现该问题已被更新的 CCNet 版本解决,如果没有,我建议您检查 CCNet 用户组

There are two possible reasons why this may have been happening:

Depending on how long the NAnt task took, 900 seconds (15 minutes) may not have been enough - although I would certainly hope it is! If that is the case, editing the ccnet-config file and setting the buildTimeoutSeconds value should fix the problem. (See the NAnt Task documentation for details).

Another possibility, and perhaps a more likely one, is that the NAnt task is failing to recognize that the NAnt process has completed. This was a known issue with some versions of CCNet - see the bug reports for CCNET-1735 and CCNET-1789. You may find that the issue has been resolved by a more recent CCNet build, if not I recommend checking with the CCNet User Group.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文