Skip to main content

Automatically deploy to Glassfish using Hudson

Posted by mriem on January 30, 2009 at 12:56 AM EST
If you want to use Hudson to automatically deploy your WAR file to Glassfish this article is a must read!
Related Topics >>

Comments

I do the same but in a more brute way :) I use an ant task to copy the generated WAR or EAR to the autodeploy folder of Glassfish: <target name="deploy" depends="package-ear"> <copy file="${build.ear.home}/${ant.project.name}.ear" todir="${env.AS_HOME}/domains/${domain}/autodeploy" /> </target> it depends of the environment variable AS_HOME, and also has the drawback to not validate the deployment (no failure in case of deployment problems).. but it works fine ....

One of the reasons I use Hudson for the deploy is that I wanted to separate the build and deploy from each other. Another added benefit is that I can deploy to another server ;)

<p>&nbsp;Do you have any reference / artical to seperate ...

Do you have any reference / artical to seperate build and deployment in to 2 jobs

<p>&nbsp;See&nbsp;<a ...

 See http://www.manorrock.com/documents/hudson/glassfish-deployment.html.

Here I do a deploy out of a Maven repository so I have one job that does the buil
and one job that does the deploy.