How do you configure a plan to build and deploy a .ear file to a JBoss server?

Ray Hundley September 1, 2011

We are currently evaluating Bamboo 3.2.2. Up to now all our builds have basically been just creating a .EAR file in our IDE (JBoss developer studio) and deploying that .ear to the application server. How would you build a plan in Bamboo to do this?

1 answer

0 votes
Jens Schumacher [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2011

You can create an .ear file using Ant or Maven and use the Ant or Maven Tasks in Bamboo to run Ant/Maven. Regarding the deployment, you could copy the created artifact to the JBoss server via SSH and configure JBoss to auto-deploy.

Ray Hundley September 15, 2011

Thank you. I've figure out how to create the .ear file using and Ant script. But now how do I copy the created artifact to my JBoss deploy directory? I don't see any task types to do this.

Jens Schumacher [Atlassian]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2011

Is the JBoss deploy directory on the same agent? If so, you can simply use the script task to move the file into the JBoss directory. If it's on a seperate machine, you could use an Ant SCP task to transfer the file.

http://ant.apache.org/manual/Tasks/scp.html

We are hoping to provide a Bamboo native SCP task soon to make this process easier.

Ray Hundley September 19, 2011

Thank for the idea about using Ant SCP, but now it appears I'll have to install some kind of SSH server on the target machine (Windows 2003 server) in order to use it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events