JBossOSGi Hudson QA

Setup the Hudson QA Environment

 

The JBossOSGi Hudson QA environment is an integral part of the JBossOSGi code base. With every release we test the matrix of supported target containers and frameworks.

 

http://jbmuc.dyndns.org:8280/hudson

Set Hudson Properties

Note, additional information around setting up Hudson can be found in this blog article: http://jbossosgi.blogspot.com/2010_10_01_archive.html

 

You need to set a few properties to match your environment

 

cd build/hudson
cp ant.properties.example ant.properties
vi ant.properties

# Tomcat settings
tomcat.base=/usr/share/tomcat6
tomcat.conf=/etc/tomcat6/tomcat6.conf
 

# SCM settings
# ------------
scm.git.url.jbosgi=git://github.com/jbosgi/jbosgi.git
scm.http.url.jbosgi=http://github.com/jbosgi/jbosgi
 

# JDK settings
# ------------
java.home.jdk15=/usr/java/jdk1.5.0_22
java.home.jdk16=/usr/java/jdk1.6.0_17
 

# Maven settings
# --------------
maven.name=apache-maven-2.2.1
maven.path=/usr/java/apache-maven-2.2.1
 

# The JBoss settings
# ------------------
jboss.server.instance=default
jboss.bind.address=127.0.0.1
 
# Hudson Default settings
# -----------------------
# hudson.root=/home/username/workspace/hudson/jboss-osgi
# hudson.admin=username
# hudson.version=1.355


 

Run Hudson Setup


[tdiesler@tdvaio hudson]$ ant hudson-setup
Buildfile: build.xml

init-hudson:

     [echo] hudson.root = /home/tdiesler/workspace/hudson/jboss-osgi
     [echo] hudson.home = /home/tdiesler/workspace/hudson/jboss-osgi/hudson-home

...

hudson-setup:
     [copy] Copying 2 files to /home/.../hudson/jboss-osgi/apache-tomcat
     ...
     [echo]
     [echo] *************************************
     [echo] * Hudson setup successfully         *
     [echo] * ant hudson-start                  *
     [echo] *************************************
     [echo]

Run Hudson Start


[tdiesler@tdvaio hudson]$ ant hudson-start
Buildfile: build.xml


init-hudson:

     [echo] hudson.root = /home/tdiesler/workspace/hudson/jboss-osgi
     [echo] hudson.home = /home/tdiesler/workspace/hudson/jboss-osgi/hudson-home

hudson-start:
     [echo]
     [echo] *************************************
     [echo] * Hudson started successfully       *
     [echo] * http://localhost:8280/hudson      *
     [echo] *************************************
     [echo]

BUILD SUCCESSFUL

Run Hudson Stop


[tdiesler@tdvaio hudson]$ ant hudson-stop
Buildfile: build.xml


init-hudson:
     [echo] hudson.root = /home/tdiesler/workspace/hudson/jboss-osgi
     [echo] hudson.home = /home/tdiesler/workspace/hudson/jboss-osgi/hudson-home

hudson-stop:
     [echo]
     [echo] *************************************
     [echo] * Hudson stopped successfully       *
     [echo] * ant hudson-start                  *
     [echo] *************************************
     [echo]

BUILD SUCCESSFUL