Installing and Using the Hudson build server

Version 84.1 by Johan Henselmans on 2009/06/10 10:34
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

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. 

Installing Hudson

To get Hudson running, the easiest way is to start running tomcat on a server. 

Unknown macro: noformat. Click on this message for details.

  • 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.

  • Start tomcat

Unknown macro: noformat. Click on this message for details.

  • create a folder /opt/local/var/db/hudson (this will be the place where hudson will store it's stuff
  • change ownership of that folder with ownership www:_www
  • add to /opt/local/share/java/tomcat6/conf/setenv.local:

Unknown macro: noformat. Click on this message for details.

  • 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. 

Next goto http://localhost:8080/hudson and you can start configuring your Hudson build server