Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » how to deploy a war file to a glassfish 3.1 server using hudson
how to deploy a war file to a glassfish 3.1 server using hudson [message #1140595] Wed, 16 October 2013 13:19 Go to next message
Dhanu kumar is currently offline Dhanu kumarFriend
Messages: 1
Registered: October 2013
Junior Member
Hi can any one help me to deploy a .war file in a glassfish 3.1 server using hudson.
Iam able to create a .war file using ant in hudson.

And under Post-build Actions i have done following settings.

Apart from these do i need to do any other settings

WAR/EAR files --------> war name


Context path


Container -----glassfish3.1


Manager user name------ username

Manager password ------passwd

GlassFish home -----path



GlassFish admin port --port


GlassFish hostname -----localhost


thanks
Dhanu
Re: how to deploy a war file to a glassfish 3.1 server using hudson [message #1152393 is a reply to message #1140595] Thu, 24 October 2013 01:08 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
That seems to be correct. I've create a war (using maven, not ant) and deployed with the following settings

https://dl.dropboxusercontent.com/u/13144273/Glassfish%20Deploy%20Settings.png

After successful build, I got

Deploying /Users/wjprakash/Hudson/Hudson3-plugins/deploy-plugin/work/jobs/glassfish-test/workspace/target/MavenWarProjetcForHudson-1.0-SNAPSHOT.war to container GlassFish 3.x Remote
Finished: SUCCESS


Also I looked at the deployed applications via glassfish admin console and saw the deployed application (tested it and it worked fine Smile )

https://dl.dropboxusercontent.com/u/13144273/Glassfish%20Deployed%20Application.png

Note: The deploy plugin may not work correctly in a slave. If you have to create the war in a slave, the best bet is to archive the war and use another job that is tied to the master and copy the archive from previous job using copy artifacts plugin and then deploy the war.


Winston Prakash
Eclipse Hudson team
Previous Topic:Hudson job with Maven 3.1.0
Next Topic:Deploy to Wildfly (jBoss 8.x?)
Goto Forum:
  


Current Time: Fri Apr 19 09:47:51 GMT 2024

Powered by FUDForum. Page generated in 0.02378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top