CruiseControl setup under RedHat Enterprise Linux 4
I had to go through the process of setting up CruiseControl for a new project this week. It happened like this:
-
Create a cruisecontrol user
useradd -s/bin/bash -d/home/cruisecontrol cruisecontrol
- Created /opt/Thoughtworks directory, use chown to set it's owner to user cruisecontrol
-
su to the cruisecontrol user and then unzip the cruisecontrol zip I had already downloaded:
unzip cruisecontrol-bin-2.6.zip
Download and execute the self-extracting RPM of the Java SDK from the Sun website
./j2re-1_4_2_13-linux-i586-rpm.bin
-
Install the RPM (installs to /usr/java/j2re1.4.2_13).
rpm -iv j2re-1_4_2_13-linux-i586.rpm
-
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 & - Run the above script, point my browser at http://hostname:8000/ or http://hostname:8080/ - and it works!
-
Now need to install subversion... Download RPMs from collab.net, and run:
rpm -iv CollabNetSubversion-client-1.4.2-7.i386.rpm
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
-
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.
- Now just need to configure the project in cruisecontrol's config.xml:
<modificationset quietperiod="30">
<svn localWorkingCopy="projects/${project.name}/subversion/workspace"/>
<modificationset>
Comments
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>
Comment by rafaela [Visitor] — 08/12/09 @ 00:33