Continuous Integration Using Hudson for Adempiere

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

For continuous integration, we have tried the cruisecontrol,but it went wrong for memory error, and now we use hudson to achieve it.

I use the scm to trigger all the build task. And the build process is by the task "complete" of the ant script in ${ADEMPIERE_HOME}/utils_dev.

Detailed steps as following:

Install and run

This tutorial supposes you have installed tomcat and your TOMCAT_HOME is /var/lib/tomcat-6/, for other situation you can alter it.

if you see the hudson page, it is successful

Add compile tools

goto Manage Hudson->Configure System

  • click add ant in "Ant installation"
  • input parameter name such as ant-1.7.1
  • input parameter ANT_HOME such as /usr/share/ant

Add job

Click new job

  • add job name such as AdempiereCI
  • select the option "Build a free-style software project"
  • click ok

now we are at the config page of our job. Input the proper parameter as following:

  • select subversion of the "Source Code Management"
  • add a Repository URL such as https://adempiere.svn.sourceforge.net/svnroot/adempiere/trunk
  • select the option "Poll SCM" in Build Triggers
  • input schedule of poll scim such as "20 * * * *"
  • select invoke ant of add build step
  • add you ant version and build file path like:${WORKSPACE}/trunk/utils_dev/build.xml
  • select the option "Archive the artifacts" of Post-build Actions
  • input the field of "Files to archive" like this: "trunk/install/build/Adempiere_353a.tar.gz"

or you can add E-mail Notification to your email address