Continuous integration of cruisecontrol, SVN, and Maven

Source: Internet
Author: User

1. cruisecontrol can run on multiple application servers. Of course, it also binds an open-source application server, that is, Jetty 6.

 

2. run the "cruisecontrol" command in the "cruisecontrol" directory. bat, it will start jetty6 by itself. After it is started in the console, you can access http: // localhost: 8080/dashboard in the browser, now you will see a sample project named connectfour displayed on the dashboard

 

3. Projects Directory: the directory where cruisecontrol stores the source code of all build projects. The default value is the project directory named projects under the working directory. Use the svn tool to checkout the project to this directory.

 

4. Description of the config. xml file

<Cruisecontrol>
<Project name = "connectfour"> -- the name here should be exactly the same as the project name in the projects directory.

<Listeners> -- used to listen for changes in the project status (building, passed, etc)
<Currentbuildstatuslistener file = "logs/$ {project. name}/status.txt"/> -- $ {project. name}
</Listeners> indicates "connectfour"

<Bootstrappers> -- used for cruisecontrol to update code from Repository
<Svnbootstrapper localworkingcopy = "projects/$ {project. name}"/>
</Bootstrappers>

<Modificationset quietperiod = "30"> -- used to monitor whether the repository changes within the quietperiod seconds
<SVN localworkingcopy = "projects/$ {project. name}"/>
</Modificationset>

<Schedule interval = "300"> -- used to check and schedule a build every interval second and cruisecontrol
<Maven2 mvnhome = "C:/maven-2.0.7" pomfile = "projects/$ {project. name}/POM. xml" goal = "clean package site"/>
</Schedule>

<Log> -- used to obtain and save the log file. By default, it is stored in the projects/$ {project. name} directory.
<Merge dir = "projects/$ {project. name}/target/test-Results"/> -- used to merge the results generated in build.
</Log> to the log file

<Publishers> -- used to publish build results (such as binary files) to a specified location
<Onsuccess> -- determines the content to be published when the build is successful.
<Artifactspublisher DEST = "F:/pai_war" file = "projects/$ {project. name}/web/target/Web. War"/>
</Onsuccess>
</Publishers>

</Project>
</Cruisecontrol>


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.