Hosted By:
SourceForge
 

Installation Instructions

Installing the main build loop

  1. Download src/build
  2. Create config file
  3. Startup cruisecontrol

1. Download Source/Build

Download the source.

If you examine the code you just downloaded, there will be a build.bat (for Windows users) and a build.sh (for UNIX users) present in the cruisecontrol/main directory. Execute the appropriate script, and CruiseControl should compile. Look in the dist directory, and you should find a cruisecontrol.jar file if the build was successful.

2. Create config file / Upgrade previous version

All of the cruisecontrol configuration exists in a single config file. If you're new to cruisecontrol, you'll have to create this file; please read the explanation of the config file format

Several basic examples are provided with the distribution in the docs/helloWorld directory

3. Startup CruiseControl

CruiseControl can be started using two approaches:

In either approach, the following command line arguments can be specified:

Flag Required Description
-jmxport [port number] No Port number for the JMX HTTP adaptor. This will activate the JMX admin functionality of CruiseControl. If no number is specified, this will default to 8000, which means you can access the site at http://localhost:8000. This is also the default that the reporting application expects for the ControlPanel JSP tab.
-rmiport [port number] No Port number for the JMX RMI adaptor and Connector Server. This will activate the JMX admin functionality of CruiseControl. If no number is specified, this will default to 1099, which is the default RMI port. If no RMI registry is running on the specified port, a registry will be started for you. You can read about the Connector Server and remoting via JSR 160 here
-configfile filename No Relative path to CruiseControl config file. Defaults to "config.xml".
-xslpath directory No The location of your custom XSLT files for use with the JMX HTML adaptor. Normally, you don't need to specify this and CruiseControl will use the style sheets that come with the distribution. This can be used to specify a directory containing your own customized versions of this stylesheets.
-user  user id No Sets a user for the JMX HTTP Adapter. This will require users to login with this user (and password see below) to use the JMX Web interface.The -password flag must also be set
-password password No Sets a password for the JMX HTTP Adapter. This will require users to login to use the JMX Web interface.The -user flag must also be set
-debug No Changes the logging level of the internal log4j Logger to DEBUG. Please note that this will NOT cause your ant scripts to run as if using 'ant -debug', you need to specify that in your config.xml file
-port [port number] No DEPRECATED: Use jmxHttpPort instead.

If you specify the -jmxport and/or the -rmiport parameter, a JMX Server will be started which can be used to control CruiseControl (force project builds, monitor the state of projects, change the logging level used internally, etc.).

Note that all parameters all optional; if you want to start CruiseControl using the config.xml file in the current working directory and do not want to use JMX to control CruiseControl, you don't need to specify any parameters.
Most users will specify (only) the -jmxport parameter, since the HTML interface to the JMX server is very convenient.

More information on getting CruiseControl up and running can be found on the wiki.

If you need more help, subscribe to the user mailing list and ask your question there.