`
dearwolf
  • 浏览: 345212 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

install and configure cc with standard configuration

阅读更多
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>
分享到:
评论

相关推荐

    CentOS 7 Linux Server Cookbook(PACKT,2ed,2016).

    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...

    Moodle.3.Administration.3rd.Edition.1783289716

    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...

    Linux: Powerful Server Administration

    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 ...

    UE(官方下载)

    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 ...

    VCS installation

    - Verify that you have administrative privileges to install and configure VCS on the target system. - Familiarize yourself with the licensing terms and conditions provided in the agreement. 2. **...

    eric5-5.3.1

    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 ...

    CanFestival3. Version 3.0 The CANOpen stack manual

    3. **Testing and Validation**: Test the node in a controlled environment to ensure compliance with the CANopen standard and proper functionality. #### 5. FAQ The FAQ section addresses common ...

    drupal 6.12

    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 ...

    impala-2.8

    - **Establishing JDBC Connections**: Configure the connection URL and credentials. #### Upgrading Impala - **Upgrade Process**: Follow the recommended upgrade path provided by the Impala ...

    geronimo-book.pdf

    To get started with Geronimo, you need to download and install it: - **Downloading Geronimo:** Visit the official Apache Geronimo website or the Apache repository to download the latest version. - **...

    MyLife Organized 3.5.9 破解版

    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 ...

    BURNINTEST--硬件检测工具

    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....

    ethminer-0.16.0.dev3

    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 ...

    cirris operation manual

    In addition to the standard items, depending on the configuration and options selected, you may also receive: - Advanced adapters - Specialized test fixtures - Additional software licenses #### ...

    Java邮件开发Fundamentals of the JavaMail API

    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. ...

    ubuntu ref

    - **Purpose**: Remove a package and its configuration files. **6. Auto Removal** - **Command**: `apt-get autoremove` - **Purpose**: Remove obsolete packages that are no longer needed. **7. Fixing...

Global site tag (gtag.js) - Google Analytics