开发者

NANT process time out after 1800 sec

开发者 https://www.devze.com 2022-12-15 20:28 出处:网络
I am using NANT to deploy the code to servers using s/w CCtray. sometimes I get this error but looks like the vsts is up according to the administrator.

I am using NANT to deploy the code to servers using s/w CCtray. sometimes I get this error but looks like the vsts is up according to the administrator. He can't figure out why it is saying this error and neither do I. Because it doesn't log any other information other than this. DOe开发者_如何学运维s anyone has faced this kind of error before and if yes how did you solve it? Or what are the options by which you could get this error.

alice triggered a build (ForceBuild)


Yes, I've have this, particularly when building large projects in NAnt build scripts under the CruiseControl .net continuous integration server.

The fix for this is quite easy, in that you need to override the default CruiseControl timeout (1800 seconds) by doing something like this inside your C:\Program Files\CruiseControl.NET\server\ccnet.config file:

<tasks>
    <nant>
        <baseDirectory>c:\your-folder\your-system</baseDirectory>
        <buildFile>your-system.build</buildFile>
        <buildTimeoutSeconds>2400</buildTimeoutSeconds>
    </nant>
</tasks>

This then buys your process more time, but still give CruiseControl a fighting chance of killing a process if it goes on for too long (abnormally).

Any good?


I assume you mean you're deploying with CCNet, since CCTray is just the windows-based monitor for CCNet.

You should have your build script spit out debugging statements at various intervals so you can tell exactly what part of the build is failing.

What happens when you run it manually on your machine or the build server?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号