views:

497

answers:

2

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

If there is no way to stop an active build, how can I cause long running builds to timeout? Is this something I should configure in Cruise Control 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 cruise control build to take a REALLY long time to finish.

+3  A: 

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>
Rich Seller
A: 

Hi

You can pause/resume/force-start and otherwise manage a crruise build by using JMX server. You might find this useful.

http://confluence.public.thoughtworks.org/display/CC/Managing+CruiseControl+With+JMX

Critical Skill