concept CruiseControl in category java

appears as: CruiseControl
JUnit in Action, Second Edition

This is an excerpt from Manning's book JUnit in Action, Second Edition.

Listeners in CruiseControl are interesting creatures, so we’d like here to spend a few lines on them. As you’ve probably noticed, building the project on a regular schedule wastes a lot of resources. CruiseControl is smart in that it doesn’t fire a new build unless it detects some changes in the source control system. Otherwise, the build would be pointless, because we’d get the same results. But how do we distinguish whether the CruiseControl server was up and skipped the build because there were no changes in the source control system or the server was down? The solution is the listeners. You can configure CruiseControl’s listeners to log everything in a file, somewhere on the filesystem. The upside is that the events that activate the listeners are triggered regardless of the state of the source control system. This way you can keep track of whether a build was attempted.

Figure 11.2. Executing CruiseControl for the first time

Once you find the host for the CruiseControl server, it’s time to install it. The installation procedure is pretty simple. You go to the CruiseControl website (http://cruisecontrol.sourceforge.net/) and download the zip distribution of your choice. As this book is being written, the latest version of CruiseControl is 2.8.3, and we use the binary distribution.