1. Download and install
I'm using a CruiseControl-2.8.4.
Cruisecontrol: http://cruisecontrol.sourceforge.net/
SVN: http://subversion.tigris.org/
First install your cruisecontrol and decompress the compressed file,
Set your environment variables and add SVN to the path of your environment variables.
After the installation, the directory structure after the installation of cruisecontrol is as follows:
Among them, cruisecontrol (CC) comes with ant1.7.0;
Logs contains log information. You can specify the log path and name in config. xml;
Under projects, continuous integration is required. The lib directory contains cruisecontrol. jar and other jar required for running;
Webapps is the website of the cruisecontrol build result. You can compile and release your project to your specified Web Container by visiting http: // localhost: 8080/dashboard.
2. Configure config. xml
<Cruisecontrol> <project name = "abbp"> <listeners> <currentbuildstatuslistener file = "logs/$ {project. name}/status.txt "/> </listeners> <bootstrappers> <svnbootstrapper localworkingcopy =" projects/$ {project. name} "/> </bootstrappers> <modificationset quietperiod =" 60 "> <SVN localworkingcopy =" projects/$ {project. name} "/> </modificationset> <schedule interval =" 60 "> <maven2 mvnscript =" C: \ maven3.0.1 \ bin \ MVN. bat "pomfile =" projects/$ {project. name}/POM. XML "goal =" clean package "/> </schedule> <log> <merge dir =" projects/$ {project. name}/target/test-Results "/> </log> <publishers> <onsuccess> <artifactspublisher DEST =" webapps "file =" projects/$ {project. name}/abbp-Web/target/abbp. war "/> </onsuccess> </publishers> </Project> </cruisecontrol>
PS: This is my configuration. It has been tested and used SVN and maven2.