Simplest Enterprise Continuous Integration Solutions

Saturday, August 28, 2010

CruiseControl: CruiseControl 2.8.4 on Fedora12

[root@fedora12 ~]# uname -a
Linux fedora12.local.lab 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux

# install ant

[root@fedora12 ~]# yum install ant

# get java install path

[root@fedora12 ~]# which java
/usr/bin/java

# get java version

[root@fedora12 ~]# java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

# install cruisecontrol-bin-2.8.4.zip

[root@fedora12 ~]# cd /usr/local
[root@fedora12 ~]# unzip /tmp/crusiecontrol-bin-2.8.4.zip

# edit cruisecontrol.sh and insert below after line 70

JAVA_HOME="/usr/default/java"
PATH=${JAVA_HOME}/bin:${PATH}

#Update below 2 lines for custom ports

EXEC="$JAVA_HOME/bin/java $CC_OPTS -Djavax.management.builder.initial=mx4j.server.MX    4JMBeanServerBuilder -Dcc.library.dir=$LIBDIR -Djetty.logs=$JETTY_LOGS -jar $LAUNCHE    R $@ -jmxport 8000 -webport 8080 -rmiport 1099"
echo $EXEC
$JAVA_HOME/bin/java $CC_OPTS -Djavax.management.builder.initial=mx4j.server.MX4JMBea    nServerBuilder "-Dcc.library.dir=$LIBDIR" "-Djetty.logs=$JETTY_LOGS" -jar "$LAUNCHER    " $@ -jmxport 8000 -webport 8080 -rmiport 1099 &

EXEC="$JAVA_HOME/bin/java $CC_OPTS -Djavax.management.builder.initial=mx4j.server.MX    4JMBeanServerBuilder -Dcc.library.dir=$LIBDIR -Djetty.logs=$JETTY_LOGS -jar $LAUNCHE    R $@ -jmxport 8100 -webport 8180 -rmiport 1199"
echo $EXEC
$JAVA_HOME/bin/java $CC_OPTS -Djavax.management.builder.initial=mx4j.server.MX4JMBea    nServerBuilder "-Dcc.library.dir=$LIBDIR" "-Djetty.logs=$JETTY_LOGS" -jar "$LAUNCHER    " $@ -jmxport 8100 -webport 8180 -rmiport 1199 &

# create symbolic link

[root@fedora12 ~]# sudo ln –s /usr/local/cruisecontrol-bin-2.8.4 /opt/cruisecontrol
/opt/cruisecontrol/cruisecontrol.sh

# CruiseControl dashboard 



No comments:

Post a Comment