Database Reference
In-Depth Information
All the tools in this section require Java. Java used to be installed as part of the Mac OS
X install, but starting with Lion, it needs to be installed explicitly, you can download
the latest version of Java for Lion from Apple.
Begin by downloading Hudson from http://hudson-ci.org/ . They have native packages
for Linux systems but not, alas, MacOS. What they have is a WAR file, which is a Java
Web Application Archive, meant to be dropped into a Java web server such as Tomcat.
Tomcat doesn't have an installer for Mac OS X either, so you need to download the
“core” Tomcat zip file from http://tomcat.apache.org/ . You can probably download
the most recent shipping version safely, but if in doubt, the Hudson site should list the
compatible versions of Tomcat.
Once you've unzipped the Tomcat archive, you should end up with a directory hier-
archy that looks something like this:
tomcat
--> bin
--> conf
--> lib
--> logs
--> temp
--> webapps
--> work
Place the Hudson WAR file in the Tomcat webapps directory, and then change direc-
tories to the Tomcat bin directory, and run startup.sh . You should see terminal output
that looks like this:
~Tom Tom$ cd ./tomcat/bin
bin Tom$ ./startup.sh
Using CATALINA_BASE: /Volumes/Homes/Tom/tomcat
Using CATALINA_HOME: /Volumes/Homes/Tom/tomcat
Using CATALINA_TMPDIR: /Volumes/Homes/Tom/tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Using CLASSPATH: /Volumes/Homes/Tom/tomcat/bin/bootstrap.jar
Give Tomcat and Hudson a few minutes to start up, and then you should be able to
browse to http://localhost:8080/hudson , and get a screen resembling the one in Fig-
ure 3-1 .
Again, an entire topic could be written about the many ways you can customize Hud-
son, so it won't be covered in any detail here. For example, you can set up users and
permissions, have Tomcat (and thus Hudson) start automatically when the Mac boots,
and much more. For the scope of this topic, we're going to focus on creating a Hudson
job to build our application automatically.
 
Search WWH ::




Custom Search