Install
Set JENKINS_HOME
Just export JENKINS_HOME=<some dir> (UNIX) or set JENKINS_HOME=<some dir> (Windows) before starting Jonas Server.
Install on Jonas 5.1.x
Download from here . Install in the usual way. Assuming you have a JONAS_ROOT and a JONAS_BASE.
Modify jenkins.war
To be able to run jenkins on Jonas, you need remove the following library : xml-apis-1.0.b2.jar
WebAppMain.contextInitialized : Failed to initialize Hudson java.lang.ClassCastException: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl cannot be cast to javax.xml.transform.TransformerFactory
Deploy jenkins.war
Copy jenkins war to "$JONAS_BASE/deploy/".
Start Jonas
Access Jenkins GUI
Open in a browser http://<machine name>:9000/jenkins