CruiseControl setup under RedHat Enterprise Linux 4

Filed under: CruiseControl — lars @ 05:18:52 pm

I had to go through the process of setting up CruiseControl for a new project this week. It happened like this:

  1. Create a cruisecontrol user

    useradd -s/bin/bash -d/home/cruisecontrol cruisecontrol
  2. Created /opt/Thoughtworks directory, use chown to set it's owner to user cruisecontrol
  3. su to the cruisecontrol user and then unzip the cruisecontrol zip I had already downloaded:

    unzip cruisecontrol-bin-2.6.zip
  4. Download and execute the self-extracting RPM of the Java SDK from the Sun website

    ./j2re-1_4_2_13-linux-i586-rpm.bin
  5. Install the RPM (installs to /usr/java/j2re1.4.2_13).

    rpm -iv j2re-1_4_2_13-linux-i586.rpm
  6. Created a run_cruisecontrol.sh script:

    #!/bin/bash

    ################################################################################
    # Sets environment variables and then runs cruisecontrol
    ################################################################################

    export JAVA_HOME="/usr/java/j2re1.4.2_13"
    ./cruisecontrol.sh &
  7. Run the above script, point my browser at http://hostname:8000/ or http://hostname:8080/ - and it works!
  8. Now need to install subversion... Download RPMs from collab.net, and run:

    rpm -iv CollabNetSubversion-client-1.4.2-7.i386.rpm
  9. Now need to follow instructions here: http://downloads.open.collab.net/readme_Linux_Client.txt - Need to edit /etc/profile and add the following line:

    PATH=/opt/CollabNet_Subversion/bin:$PATH
  10. Went to /opt/Thoughtworks/cruisecontrol/projects, made project_name/subversion directory, cd to this and typed:

    svn checkout http://svn_servername/repos/ProjectName/workspacedir

    First attempt should prompt for username/password which is then cached by the subversion client.

  11. Now just need to configure the project in cruisecontrol's config.xml:

    <modificationset quietperiod="30">
    <svn localWorkingCopy="projects/${project.name}/subversion/workspace"/>
    <modificationset>

Comments

  • rafaela
    Thanks for the great tips!

    Comment by rafaela [Visitor] — 08/12/09 @ 00:33

Leave a comment

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>


Options:
(Line breaks become <br />)
(Set cookies for name, email & url)




powered by  b2evolution