Dashboard > WebObjects > Home > Installing and Using the Hudson build server
  WebObjects Log In View a printable version of the current page.  
  Installing and Using the Hudson build server
Added by Johan Henselmans, last edited by Frank Cobia on Oct 22, 2009  (view change) show comment
Labels: 

Hudson is a build server that takes the chore of the building and can do it automatically, based on all kinds of variables.

The complete introduction has been show on wowodc-west in 2009.

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.
  1. Create a /Developer/Hudson/Home directory
  2. Download Hudson From http://hudson.dev.java.net. Save the hudson.war file to /Developer/Hudson
  3. Launch Hudson with the following command in Terminal.app:
    java -DHUDSON_HOME=/Developer/Hudson/Home -jar /Developer/Hudson/hudson.war

    If you have an instance of tomcat or AJP running in a different process you can also use the -httpPort= and --ajp13Port= options to change the ports used.

    java -DHUDSON_HOME=/Developer/Hudson/Home -jar /Developer/Hudson/hudson.war -httpPort=9080 --ajp13Port=9009
  4. Point your browser to: http://localhost:8080/
  5. Start setting up jobs!

Servlet Container Installation

  1. Install Tomcat from http://www.macports.org with the command
    sudo /opt/local/bin/port install tomcat6
    
  2. Create an administrative user in /opt/local/share/java/tomcat6/conf/tomcat-users.xml (20 mins to find out where the user should be and how not to restart tomcat). Something along the line of:
    <?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.

  3. Start tomcat
    sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist
    
  4. download Hudson from http://hudson.dev.java.net, take care that you use the contextual menu to download the link hudson war file
  5. create a folder /opt/local/var/db/hudson (this will be the place where hudson will store it's stuff
  6. change ownership of that folder with ownership _www:_www
  7. add to /opt/local/share/java/tomcat6/conf/setenv.local:
    export HUDSON_HOME=/opt/local/var/db/hudson
    export JAVA_OPTS=-Djava.awt.headless=true
    
  8. Install Hudson in Tomcat: goto http://localhost:8080, login with the user and password that you have created in the tomcat-users.xml, and upload hudson.war to the tomcat server.
  9. Goto http://localhost:8080/hudson and you can start configuring your Hudson build server

Building WO Apps

Site running on a free Atlassian Confluence Open Source Project License granted to ObjectStyle. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators