-
1. Remote deploy to jboss-5.1.0.GA-jdk6 (Hudson/Jenkins Plugin?)
alesj Mar 22, 2011 5:23 AM (in response to arandall)Can someone point me in the right direction to remote deploy my Jenkins builds to JBoss AS 5.1?
You have these options:
* see how we do it in Arquilllian (http://www.jboss.org/arquillian/)
* see how we do it in AS' testsuite via legacy MainDeployer::deploy(URL)
-
2. Remote deploy to jboss-5.1.0.GA-jdk6 (Hudson/Jenkins Plugin?)
peterj Mar 22, 2011 3:43 PM (in response to arandall)Some addtional information about your setup would help also. Like where the built WAR file is located, whether that is on the same system as JBoss AS, and whther the JBoss AS is a Jenkins slave machine. If the WAR is in a Maven repository (such as Nexus or Artifactory) and your JBoss AS system is a Jenkins build slave, then a simple Ant build script that extracts the WAR from the repository and copies it to the deploy directory would work. And there are probably 1000 variations to this theme, with various different complexities.
-
3. Remote deploy to jboss-5.1.0.GA-jdk6 (Hudson/Jenkins Plugin?)
arandall Mar 22, 2011 6:43 PM (in response to peterj)The WAR file is located on the same machine that is running Jenkins and is built from the source using an Ant script. I would like to deploy this file onto JBoss AS that is running on another physical host.
I haven't configured the JBoss AS system as a Jenkins slave but that may be the simplest solution.
-
4. Remote deploy to jboss-5.1.0.GA-jdk6 (Hudson/Jenkins Plugin?)
peterj Mar 23, 2011 4:07 PM (in response to arandall)Just a hint - no matter what mechanism you use (Hudson build script extracting from Nexus, FTP, network file copy, scp, etc.) make sure that your script does not directory place the WAR in the deploy directory. Instead, place the WAR in a separate temporary directory on the same partion on which JBoss AS is installed, and then move the WAR to the deploy directory. Doing it this way will avoid the possible zip file error that can result if JBoss AS tryies to deploy the WAR before it has been finished copying (and across-the-netwrok copies are always way too slow).