<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jBPM3 Hudson Setup
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="http://community.jboss.org/people/admin">Administrator Administrator</a> in <i>jBPM</i> - <a href="http://community.jboss.org/docs/DOC-12865">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><h2>Hudson QA Environment</h2><p>The <a class="jive-link-external-small" href="http://hudson.jboss.org/hudson/view/jBPM/"> Hudson QA environment</a> is an integral part of the jBPM3 code base. With every release we test the matrix of target <a class="jive-link-wiki-small" href="http://community.jboss.org/docs/DOC-12859">containers</a>, <a class="jive-link-wiki-small" href="http://community.jboss.org/docs/DOC-12860">databases</a> and supported JDKs.</p><h3>Set Hudson Properties</h3><p>You need to set a few properties, especially these.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table border="1" cellpadding="3" cellspacing="0" style="width: 100%; border: 1px solid #000000;"><tbody><tr><th align="center" style="background-color:#6690BC;; border: 1px solid #000000;background-color:#6690BC;" valign="middle"><span style="color: #ffffff;"><strong>Property</strong></span><br/></th><th align="center" style="background-color:#6690BC;; border: 1px solid #000000;background-color:#6690BC;" valign="middle"><span style="color: #ffffff;"><strong>Value</strong></span></th></tr><tr><td style="border: 1px solid #000000;">java.home.*</td><td style="border: 1px solid #000000;">Path to JDK installations</td></tr><tr><td style="border: 1px solid #000000;">hudson.username</td><td style="border: 1px solid #000000;">User name to log in to Hudson</td></tr><tr><td style="border: 1px solid #000000;">hudson.password</td><td style="border: 1px solid #000000;">Password to log in to Hudson</td></tr><tr><td style="border: 1px solid #000000;">hudson.maven.path</td><td style="border: 1px solid #000000;">Path to Maven 2 installation</td></tr><tr><td style="border: 1px solid #000000;">hudson.root</td><td style="border: 1px solid #000000;">Directory where the Hudson server will be installed</td></tr><tr><td style="border: 1px solid #000000;">hudson.jboss*.zip</td><td style="border: 1px solid #000000;">Path to JBoss AS distribution files</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">cd hudson
cp ant.properties.example ant.properties
vi ant.properties</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code"># 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
</code></pre><h3>Set Up Hudson</h3><p>Run Ant target <span style="font-family: courier new,courier;">hudson-setup</span>. Note that the hudson.root directory defined above must exist.</p><pre class="jive-pre"><code class="jive-code">[aguizar@siankaan hudson]$ ant hudson-setup 
Buildfile: build.xml

init:
&#160;&#160;&#160;&#160; [echo] version.id=3.2.10-SNAPSHOT
&#160;&#160;&#160;&#160; [echo] repository.id=3.2.10-SNAPSHOT

init-hudson:
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] hudson.root = /home/aguizar/jbpm/hudson
&#160;&#160;&#160;&#160; [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
&#160;&#160;&#160;&#160; [echo]

init-thirdparty:

get-tomcat:

get-hudson:

get-jboss405:

get-jboss423:

get-jboss501:

get-jboss510:

thirdparty:

hudson-tomcat-setup:

hudson-setup:
&#160;&#160;&#160;&#160; [copy] Copying 2 files to /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
&#160;&#160;&#160;&#160; [copy] Copying 11 files to /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo] * Hudson setup successfully&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] * ant hudson-start&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo]

BUILD SUCCESSFUL
Total time: 0 seconds</code></pre><h3>Start Hudson</h3><pre class="jive-pre"><code class="jive-code">[aguizar@siankaan hudson]$ ant hudson-start
Buildfile: build.xml

init:
&#160;&#160;&#160;&#160; [echo] version.id=3.2.10-SNAPSHOT
&#160;&#160;&#160;&#160; [echo] repository.id=3.2.10-SNAPSHOT

init-hudson:
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] hudson.root = /home/aguizar/jbpm/hudson
&#160;&#160;&#160;&#160; [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
&#160;&#160;&#160;&#160; [echo] 

hudson-start:
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo] * Hudson started successfully&#160;&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] * http://localhost:8180/hudson&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo] 

BUILD SUCCESSFUL
Total time: 0 seconds
</code></pre><h3>Stop Hudson</h3><pre class="jive-pre"><code class="jive-code">[aguizar@siankaan hudson]$ ant hudson-stop 
Buildfile: build.xml

init:
&#160;&#160;&#160;&#160; [echo] version.id=3.2.10-SNAPSHOT
&#160;&#160;&#160;&#160; [echo] repository.id=3.2.10-SNAPSHOT

init-hudson:
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] hudson.root = /home/aguizar/jbpm/hudson
&#160;&#160;&#160;&#160; [echo] hudson.home = /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/hudson-home
&#160;&#160;&#160;&#160; [echo] 

hudson-stop:
&#160;&#160;&#160;&#160; [exec] Using CATALINA_BASE:&#160;&#160; /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
&#160;&#160;&#160;&#160; [exec] Using CATALINA_HOME:&#160;&#160; /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat
&#160;&#160;&#160;&#160; [exec] Using CATALINA_TMPDIR: /home/aguizar/jbpm/hudson/jbpm-hudson-3.2.10-SNAPSHOT/apache-tomcat/temp
&#160;&#160;&#160;&#160; [exec] Using JRE_HOME:&#160;&#160;&#160;&#160;&#160;&#160; /etc/alternatives/java_sdk
&#160;&#160;&#160;&#160; [echo] 
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo] * Hudson stopped successfully&#160;&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] * ant hudson-start&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; [echo] *************************************
&#160;&#160;&#160;&#160; [echo] 

BUILD SUCCESSFUL
Total time: 0 seconds
</code></pre></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-12865">going to Community</a></p>

        <p style="margin: 0;">Create a new document in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>