CruiseControl uses an XML configuration file to customize its behavior. Refer to the CruiseControl website for the detailed description of the configuration file. A sample configuration file for version 2.5 is provided below. Any value starting with "my" should be replaced with the appropriate value for that environment. The important elements are highlighted below:
-
threads - specifies the number of concurrent builds that can occur. If more than one project, set this to the number of projects.
-
P4Bootstrapper - specifies what needs to be synced before a build is run through the view attribute.
-
Modificationset - specifies what changes will trigger a build through the view attribute.
-
interval - specifies the time interval between builds in seconds.
-
maven - specifies that the build will use Maven. The mavenscript attribute specifies the file to launch. This file should contain any environment specific environment settings, as well a launch maven. The config file below specifies maven_20X.bat will be used.
-
log - specifies the logs for the test. Maven automatically puts it in the target/test-reports directory. This will be used to display the test results on the status page.
-
email - specifies how email notification will be sent. The map attribute maps the version control system (VCS) user name to a valid email address for that user.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.