开发者

How can I stop a CruiseControl build or change the configuration to cause long running builds to time out?

开发者 https://www.devze.com 2022-12-08 00:38 出处:网络
Is there any way to stop an active CruiseControl build short of stopping and restarting CruiseControl? I\'m running CruiseControl Dashboard version 2.7.2.

Is there any way to stop an active CruiseControl build short of stopping and restarting CruiseControl? I'm running CruiseControl Dashboard version 2.7.2.

If there is no way to stop an active build, or how can I cause long running builds to timeout? Is this something I should configure in CruiseControl or in Ant?

Background

It looks like a networking change is causing some of our test cases to wait for a long time before timing out. This is causing the CruiseControl build to take a REALLY long time t开发者_C百科o finish.


You can configure the ant task (and most other build tasks too) by setting the optional timeout property in the configuration.

Ant build will be halted if it continues longer than the specified timeout. Value in seconds.

The example below will halt the build after 60 seconds:

<schedule>
  <ant antscript="C:\Java\apache-ant-1.6.1\bin\ant.bat"
     antworkingdir="D:\workspace\MyProject"
     buildfile="MyProject-nightlybuild.xml"
     timeout="60"/>
<schedule>


You can pause, resume, force-start and otherwise manage a CruiseControl build by using JMX server. For more information, see Managing CruiseControl With JMX.

0

精彩评论

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