Installing CruiseControl

From Foochal

Jump to: navigation, search


  • Create a new linux user "cruisecontrol"
  • Download cruise control binary and unzip in /home/cruisecontrol
  • Change the jetty port to 9000/9080 in the following file:
~/cruisecontrol-bin-2.7.2/cruisecontrol.sh

Installing under tomcat

  • Copy the 3 webapp directories to ~tomcat/webapps
cp -R ~cruisecontrol/cruisecontrol-bin-2.7.2/webapps/cruisecontrol/ ~tomcat/webapps/
cp -R ~cruisecontrol/cruisecontrol-bin-2.7.2/webapps/crusecontrol-dashboard/ ~tomcat/webapps/
cp -R ~cruisecontrol/cruisecontrol-bin-2.7.2/webapps/cc-config/ ~tomcat/webapps/

Pass startup parameter to tomcat.

-Ddashboard.config=/home/cruisecontrol/dashboard-config.xml


Modify dashboard-config.xml

<dashboard>
        <buildloop
            logsdir="/home/cruisecontrol/logs"
            artifactsdir="/home/cruisecontrol/artifacts" />
        <features allowforcebuild="true"/>
        <trackingtool projectname="" baseurl="" keywords=""/>
        <subtabs>
            <subtab class="net.sourceforge.cruisecontrol.dashboard.widgets.ErrorsAndWarningsMessagesWidget" />
        </subtabs>
</dashboard>


Permissions:

  • make sure that dashboard-config.xml is readable by tomcat
  • logs and artifacts are writable/readable by tomcat

Personal tools