Cruise Control

[edit] 1 Installation
[edit] 1.1 Cruise Control
download, expand, build.


In the rbd1 lasmap user it has been expanded into the directory

/app/weblogic/lasmap/continuous_builds/
[edit] 1.2 Config
You need two config files

config.xml - Controls the controlling continuous loop
cc-build.xml - Controls what happens when a change is detected, i.e. Runs the build
email.properties - converts cvs usernames into email addresses

For LA2 these files are all in CVS in SDA/Server/LA2/CruiseControl.

You can edit them there and they should get picked up by the next build cycle.


In addition the nightly build contains a personal.properties file in the cruisecontrol directory. This is a symbolic link onto the copy in the nightly build environment.

[edit] 1.3 Automatic Emails
Cruise Control sends automated email to people who seem to have broken the build. The username -> email mapping comes from the email.properties file.

This is in cvs in SDA/Server/LA2/CruiseControl/email.properties

[edit] 1.4 Web Application
The lasmap the cruisecontrol.war runs in the admin server from the war in /app/weblogic/lasmap/continuous_builds/cruisecontrol-2.4.1/reporting/jsp/dist (this is configured in weblogic config.xml)

The war config comes from override.properties in the directory /app/weblogic/lasmap/continuous_builds/cruisecontrol-2.4.1/reporting/jsp/

This file defines where cruise control runs:
 user.log.dir=/app/weblogic/lasmap/continuous_builds/LA2_Server_All/CruiseControl/logs
 user.build.status.file=currentbuildstatus.txt
 cruise.build.artifacts.dir=/app/weblogic/lasmap/continuous_builds/LA2_Server_All/CruiseControl/logs



[edit] 2 Execution
The nightly build run the run.sh script (in LA2/CruiseControl/). This script us started by the nightly build script (at the end of the test block). It checks for and kills previous copies and then starts a fresh copy for the day.


You can see that status from the CruiseControl tab at: http://rbd1.unix.nbnz.co.nz:8011/

[edit] 2.1 Resources
http://cruisecontrol.sourceforge.net/main/configxml.html

Retrieved from "http://bobo.dist.nbnz.co.nz/wiki/index.php/Cruise_Control"
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章