1. make sure that JDK installed and JAVA_HOME configured.
2. sudo vim cruisecontrol.sh, modify webport
3. replace config.xml
4. remove useless project under /logs and /projects
5. cd /projects, mkdir marsrover
6. cd /marsrover, run svn checkout http://marsrover.googlecode.com/svn/trunk/ . (don't miss .)
7. start cruise.
See the config.xml below:
<cruisecontrol>
<project name="marsrover"> <!-- should be the same as the project directory name-->
<!-- NOTE: if you want to force build even if no code modifications detected, you can add requiremodification="false" to the project attributes -->
<!--
there are some different scenerios -
http://confluence.public.thoughtworks.org/display/CC/CruiseControl+Scheduling+Scenarios
-->
<listeners>
<!-- listening for status change, such as waiting for build, queued, building, etc. Normally we won't change this configuration -->
<currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
</listeners>
<!-- NOTE: CC doesn't support check out the code on the first time, so you should check out code to the project directory first.-->
<!-- NOTE: if you're using https to update code, then the code should checked out firstly with command line, and accept certification permanently-->
<bootstrappers>
<!-- this element is used to checkout code, we use svn here, localWorkingCopy is used to check out code to local file system-->
<svnbootstrapper localWorkingCopy="projects/${project.name}"/>
</bootstrappers>
<modificationset quietperiod="30">
<!--if the code changed, and there are no checkins within quietperiod seconds, the cc will check out code from the repository-->
<svn localWorkingCopy="projects/${project.name}"/>
<!-- here we do a forced nightly build, it will create a faked modification on 11pm,
then it needn't <project requiremodification="false"> -->
<timebuild time="2300"/>
</modificationset>
<schedule interval="300">
<!-- do CI during the day, every 5 minutes-->
<!-- cc will launch a build every interval seconds, here we uses ant with the specified build file-->
<!-- NOTE: user can also specify time attribute to ant, such as <ant time="2300"> means build on 23:00-->
<ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>
</schedule>
<log>
<!-- save log file, the file will be saved under logs/${project.name} by default-->
<merge dir="projects/${project.name}/target/junit-test-report"/> <!-- merge the build result -->
<!-- if we want to see the just test result in cc, the junit result should be located under the same directory as described above -->
<merge file="projects/${project.name}/target/checkstyle_report.xml"/>
<!-- to show the checkstyle result on the cc page, we should edit /webapps/cruisecontrol/main.jsp, and uncomment the lines below:
<cruisecontrol:tabrow/>
<cruisecontrol:tab name="checkstyle" label="CheckStyle">
<%@ include file="checkstyle.jsp" %>
</cruisecontrol:tab>
-->
</log>
<publishers>
<!-- publish the build result to the specified location, there are many plugins in cc to do all kinds of publishing, such as send out
email, call the specified page using http, play music, etc. -->
<onsuccess>
<!-- specify what will be published when build succeeded-->
<artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/${project.name}.jar"/>
<!-- in the element above, we must make sure that the built jar file should be exactly named as ${project.name}.jar-->
</onsuccess>
<!-- NOTE: if you want cruisecontrol to report a test failure as a build failure, you need to make Ant report the test failure as a failure. just like this:
<junit fork="true" haltonfailure="false" failureproperty="junit_test_failed" printsummary="on">
</junit>
<fail if="junit_test_failed" message="One or more JUnit tests failed"/>
see: http://confluence.public.thoughtworks.org/display/CC/FailOnTestFailure
-->
<htmlemail mailhost="smtp.gmail.com" mailport="465" usessl="true" username="xxx@gmail.com" password="xxx" reportsuccess="always" returnaddress="build@xxx.com" subjectprefix="xxx build logs">
<always address="xxx@gmail.com" />
</htmlemail>
</publishers>
</project>
</cruisecontrol>
分享到:
相关推荐
Install and configure common standard services such as web, mail, FTP, database and domain name server technologies Introduce you to the world of operating-system-level virtualization using the Docker...
Install and configure common standard services such as web, mail, FTP, database and domain name server technologies Introduce you to the world of operating-system-level virtualization using the Docker...
This book concentrates on basic tasks such as how to set up and configure Moodle and how to perform day-to-day administration activities, and progresses on to more advanced topics that show you how to...
Install and configure common standard services such as web, mail, FTP, database and domain name server technologies Create kickstart scripts to automatically deploy RHEL 7 systems Use Orchestration ...
The requirements for this include a working knowledge of: - Hardware options - AIX 5L parameters - The cluster and resource configuration process - Customization of the standard HACMP 5.x...
UltraEdit and UEStudio provide multiple methods to quickly open files without using the standard Open File dialog. A favorite method among power users is the Quick Open in the File menu. The benefit ...
The first possibility is to install them together with eric5. In order to do that, simply extract the downloaded archives into the same place as the eric5 archive and follow the installation ...
2. CREATE THE CONFIGURATION FILE AND GRANT WRITE PERMISSIONS Drupal comes with a default.settings.php file in the sites/default directory. The installer uses this file as a template to create your ...
Table of Contents Preface 1 Chapter 1: Getting Started with ...Overview and configuration 254 Enable the rewrite module 254 Running a test server 255 Install WordPress 256 Summary 257 Index 259
3) Download from website EXE or CAB installation and follow the instructions to install MLO-PocketPC on your device 4) Perform soft reset of your device if installation program warns you that it is ...
data with random seeking" test mode and only occurs with some specific test settings. Release 5.3 build 1024 WIN32 release 10 July 2008 - Workaround for the rare crash bug in Vista in atklumdisp....
3. Configure the project with CMake. Check out additional [configuration options](#cmake-configuration-options). ```sh cmake .. ``` Note: In Windows, it is possible to have issues with VS 2017 ...
If you want to access a POP server with JavaMail 1.1.3, download and install a POP3 provider. Sun has one available separate from the JavaMail implementation. After downloading and unbundling pop31_...
This specification is intended to be an open standard, and as such the text and information contained herein may be freely used, copied, or distributed without compensation or licensing restrictions. ...
addressing and configuration dynamically with no user intervention. DHCP depends on your network administrator to set up a DHCP server on your network. A DHCP server is scheduled to ship as part of ...
Unlicensed Transmitters 66 Summary 68 Solutions Fast Track 69 Frequently Asked Questions 71 Chapter 3 TCP/IP and the OSI Model 73 Learn to Configure Introduction 74 and ...
3,编译CMakeTargets\INSTALL项目(Debug): 在VS工作区界面左侧方案浏览器(Solution Explorer)列表中选中"CMakeTargets\INSTALL"项目,确定Solution Configure为Debug,右键执行Build(编译项目); B.编译OpenCV方案...
Table of Contents Preface, Notes, Licenses . . . . . . . . ....1. Licenses for Third-Party Components ....1.1. FindGTest.cmake License ....1.2. LPeg Library License ....1.3. LuaFileSystem Library License ....
1. Install Updates, Patches and Additional Software ....................................................................... 13 1.1 Use the Latest OS Release ..............................................