Hudson Continuous Integration for Liferay

Instructions for setup of Hudson CI tools for Liferay #

  1. Create a directory for Hudson.
    1. example: Unix /var/hudson Windows C:\Hudson
  2. Download the attachment: job-config.zip and unzip in above directory
  3. Set Environment variable: HUDSON_HOME to Hudson working directory above
    1. On Unix: export HUDSON_HOME=/var/hudson
    2. On Windows: Set Environment variable for HUDSON_HOME to C:\Hudson
  4. Download and install ANT, SVN Client, JDK 1.5
  5. Ensure JDK, SVN, ANT are available on system.
    1. On Unix: which svn java ant
    2. On Windows: At command prompt attempt to execute ant, svn, java
  6. Download http://hudson.gotdns.com/latest/hudson.war
  7. java -jar hudson.war --httpPort=9090 --ajp13Port=9009
    1. The tomcat running the built liferay bits will be on port 8080
    2. Running Hudson on 9090 will help if you plan to run the automated test suite.
    3. This will make sure the Tomcat running Hudson will not crash if the tests leak resources.
  8. Click on http://localhost:9090/hudson to view/manage the build Jobs.
    1. There will be two jobs: Portal ; Plugins
  9. Access http://localhost:8080/hudson/configure
    1. Setup the SMTP Mailserver settings
    2. Other properties on this page might need changes depending on your system.
2 Attachments
24628 Views
Average (2 Votes)
The average rating is 1.5 stars out of 5.
Comments
Threaded Replies Author Date
Hi this appears to be an update from the... Luke McLean July 24, 2008 11:13 PM
I managed to hunt down LEP-6633 that linked to... Luke McLean July 24, 2008 11:57 PM
This guide is mostly about installing Hudson,... Chris Jurado September 17, 2013 6:32 AM

Hi this appears to be an update from the initial version I have read as the first one had Hudson being deployed on Tomcat. I have managed to follow these instructions down to section 8, where it appears to be accessed on http://localhost:9090/ rather than http:localhost:9090/hudson/. The next line has this novice lost however as it states that there will be two jobs "Portal" and "Plugins". I don't have any jobs showing? So I wonder, does this mean that two jobs need to be set up (instructions?), or is there something missing (my corporate dev env does not have internet access)? Thanks.
Posted on 7/24/08 11:13 PM.
I managed to hunt down LEP-6633 that linked to the config.xml files before they were removed from source. I have downloaded them and attached to this page as hudson.zip. I have not added them to my dev env and tested yet as I am no longer at work but that would appear to explain why the 'Portal' and 'Plugins' job are missing at section 8 of the instructions.
Posted on 7/24/08 11:57 PM in reply to Luke McLean.
This guide is mostly about installing Hudson, which is already covered in the Hudson documentation. What would be more useful is details on the specific configurations and issues regarding Liferay plugin -projects.
Posted on 9/17/13 6:32 AM.