Continuous Integration Server (cruisecontrol) installation and configuration

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.