Hudson is an "extensible continuous integration server". It monitors repeated executions of jobs, such as building software projects, and can be used to build WebObjects applications and frameworks. Hudson is an open source project, and can be used at no cost. An introductory presentation on building WebObjects projects with Hudson was given by Mike Schrag at WOWODC-West in 2009, and the video can be purchased from wocommunity.org.
Setting up Hudson
There are a couple different ways to run Hudson. The easiest is to run it as a standalone application.
Standalone Installation
| These instructions are based on David Avendasora's setup. You may have different preferences as to where to install Hudson at or where to set its home directory to. |
- Create a /Developer/Hudson/Home directory.
- Download Hudson, saving hudson.war file to /Developer/Hudson.
- Launch Hudson with the following command in Terminal.app:
java -DHUDSON_HOME=/Developer/Hudson/Home -jar /Developer/Hudson/hudson.war

Hudson uses a built-in servlet container in stand-alone mode. If you have Tomcat running on the computer already, you should use the - httpPortand -ajp13Port options to change which ports Hudson uses.java -DHUDSON_HOME=/Developer/Hudson/Home -jar /Developer/Hudson/hudson.war -httpPort=9080 --ajp13Port=9009
- Point your browser to: http://localhost:8080/
- Start setting up jobs!
Servlet Container Installation on Mac OS X (10.5, 10.6)
- Install Tomcat from http://www.macports.org with the command
sudo /opt/local/bin/port install tomcat6
- Create an administrative user in /opt/local/share/java/tomcat6/conf/tomcat-users.xml.
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="tomcat" password="tomcat" roles="admin,manager"/> </tomcat-users>
Don't forget to change the username and password after you have finished checking out the build server and start using it in production.
- Start Tomcat.
sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist
- Download Hudson, saving hudson.war somewhere for later.
- Create a folder for Hudson to work in: /opt/local/var/db/hudson
- Change ownership of that folder: chown _www:_www /opt/local/var/db/hudson
- Add the following to /opt/local/share/java/tomcat6/conf/setenv.local:
export HUDSON_HOME=/opt/local/var/db/hudson export JAVA_OPTS=-Djava.awt.headless=true
- Install Hudson in Tomcat: go to http://localhost:8080, login with the user and password that you have created in tomcat-users.xml, and upload hudson.war to the Tomcat server.
- Goto http://localhost:8080/hudson and you can start configuring your Hudson build server.
Servlet Container Installation on Mac OS X Server (10.6)
- Tomcat is by default installed on Mac OS X Server.
- Create an administrative user in /Library/Tomcat/conf/tomcat-users.xml.
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="tomcat" password="tomcat" roles="admin,manager"/> </tomcat-users>
Don't forget to change the username and password after you have finished checking out the build server and start using it in production.
- The way to start it depends on the version. The current way is to go to the Web Settings in Server Admin, Settings, General, check the Tomcat checkbox. Restart the WebServer.
- [Download Hudson|http://hudson-ci.org/latest/hudson.war], saving hudson.war somewhere for later.
- Create a folder for Hudson to work in: /Library/hudson
- Change ownership of that folder: chown _appserver:sys /Library/Hudson
- Add the following to /Library/Tomcat/bin/setenv.sh:
export HUDSON_HOME=/Library/Hudson export JAVA_OPTS=-Djava.awt.headless=true
- Make sure that you are using UTF8 in the Connector, by adding
URIEncoding="UTF-8"
to the Connector in /Library/tomcat/conf/server.xml in such a way:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
- Install Hudson in Tomcat: go to http://localhost:8080, login with the user and password that you have created in tomcat-users.xml, and upload hudson.war to the Tomcat server.
- Goto http://localhost:8080/hudson and you can start configuring your Hudson build server.
Building WO Apps
- Check out setupWorkspace.sh
