jBPM3 Hudson Setup

Version 2

    Hudson QA Environment

    The Hudson QA environment is an integral part of the jBPM3 code base. With every release we test the matrix of target jBPM3 Target Containers, jBPM3 Target Databases and supported JDKs.

    Set Hudson Properties

    You need to set a few properties, especially these.

     

    Property
    Value
    java.home.*Path to JDK installations
    hudson.usernameUser name to log in to Hudson
    hudson.passwordPassword to log in to Hudson
    hudson.maven.pathPath to Maven 2 installation
    hudson.rootDirectory where the Hudson server will be installed
    hudson.jboss*.zipPath to JBoss AS distribution files

     

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

     

    # JBoss remote repository
    jboss.repository=http://repository.jboss.org
    
    # The JBoss settings
    jboss.server.instance=default
    jboss.bind.address=127.0.0.1
    
    # JDK settings
    java.home.jdk14=/etc/alternatives/java_sdk_1.4.2
    java.home.jdk15=/etc/alternatives/java_sdk_1.5.0
    java.home.jdk16=/etc/alternatives/java_sdk_1.6.0
    
    # Hudson QA Environment
    hudson.username=changeme
    hudson.password=changeme
    
    hudson.maven.path=/usr/share/maven2
    hudson.maven.profile=$JBPMDIR/hudson/profiles.local.qa.xml
    
    hudson.root=/home/hudson/workspace
    
    hudson.host=localhost
    hudson.admin.port=8150
    hudson.http.port=8180
    
    #hudson.jboss405.zip=file:/home/hudson/download/java/jboss/jboss-4.0.5.GA.zip
    #hudson.jboss423.zip=file:/home/hudson/download/java/jboss/jboss-4.2.3.GA.zip
    #hudson.jboss501.zip=file:/home/hudson/download/java/jboss/jboss-5.0.1.GA.zip
    #hudson.jboss510.zip=file:/home/hudson/download/java/jboss/jboss-5.1.0.GA-jdk6.zip
    
    hudson.mail.recipients=
    hudson.smtp.host=localhost
    
    # Hudson (1.295)
    apache-tomcat=5.5.20
    sun-hudson=2402/131374
    

    Set Up Hudson

    Run Ant target hudson-setup. Note that the hudson.root directory defined above must exist.

    [aguizar@siankaan hudson]$ ant hudson-setup 
    Buildfile: build.xml
    
    init:
         [echo] version.id=3.2.10-SNAPSHOT
         [echo] repository.id=3.2.10-SNAPSHOT
    
    init-hudson:
         [echo] 
         [echo] hudson.root = /home/aguizar/jbpm/hudson
         [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
         [echo]
    
    init-thirdparty:
    
    get-tomcat:
    
    get-hudson:
    
    get-jboss405:
    
    get-jboss423:
    
    get-jboss501:
    
    get-jboss510:
    
    thirdparty:
    
    hudson-tomcat-setup:
    
    hudson-setup:
         [copy] Copying 2 files to /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
         [copy] Copying 11 files to /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
         [echo] 
         [echo] *************************************
         [echo] * Hudson setup successfully         *
         [echo] * ant hudson-start                  *
         [echo] *************************************
         [echo]
    
    BUILD SUCCESSFUL
    Total time: 0 seconds

    Start Hudson

    [aguizar@siankaan hudson]$ ant hudson-start
    Buildfile: build.xml
    
    init:
         [echo] version.id=3.2.10-SNAPSHOT
         [echo] repository.id=3.2.10-SNAPSHOT
    
    init-hudson:
         [echo] 
         [echo] hudson.root = /home/aguizar/jbpm/hudson
         [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
         [echo] 
    
    hudson-start:
         [echo] 
         [echo] *************************************
         [echo] * Hudson started successfully       *
         [echo] * http://localhost:8180/hudson      *
         [echo] *************************************
         [echo] 
    
    BUILD SUCCESSFUL
    Total time: 0 seconds
    

    Stop Hudson

    [aguizar@siankaan hudson]$ ant hudson-stop 
    Buildfile: build.xml
    
    init:
         [echo] version.id=3.2.10-SNAPSHOT
         [echo] repository.id=3.2.10-SNAPSHOT
    
    init-hudson:
         [echo] 
         [echo] hudson.root = /home/aguizar/jbpm/hudson
         [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
         [echo] 
    
    hudson-stop:
         [exec] Using CATALINA_BASE:   /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
         [exec] Using CATALINA_HOME:   /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
         [exec] Using CATALINA_TMPDIR: /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat/temp
         [exec] Using JRE_HOME:       /etc/alternatives/java_sdk
         [echo] 
         [echo] *************************************
         [echo] * Hudson stopped successfully       *
         [echo] * ant hudson-start                  *
         [echo] *************************************
         [echo] 
    
    BUILD SUCCESSFUL
    Total time: 0 seconds