Plugin Information
This plugin takes a war/ear file and deploys that to a running remote application server at the end of a build. The implementation is based on Cargo. The list of currently supported containers include:
- Tomcat 4.x/5.x
- JBoss 3.x/4.x
- Glassfish ?
Refer to the Deploy WebSphere Plugin to deploy to a running remote WebSphere Application Server.
How to rollback or redeploy a previous build
There may be several ways to accomplish this, but here is one suggested method:
- Install the Copy Artifact Plugin
- Create a new job that you will trigger manually only when needed
- Configure this job with a build parameter of type "Build selector for Copy Artifact", and a copy artifact build step using "Specified by build parameter" to select the build.
- Add a post-build action to deploy the artifact that was copied from the other job
Now when you trigger this job you can enter the build number (or use any other available selector) to select which build to redeploy. Thanks to Helge Taubert for this idea.
Change Log
Version 1.5 (Jan 16, 2010)
- Support Ant style GLOBs for specifying war/ear files (issue #5166)
Version 1.4 (Dec 30, 2009)
- Update library to Cargo 1.0
- Only deploy if the build was successful, unless "even when failed" option is checked
- Check URL format when saving config
- Update code for more recent Hudson
- Add initial glassfish support
Version 1.3 (Aug 5, 2008)
Version 1.2 (Jul 11, 2008)
- Fixed the problem in submitting the configuration. Make sure to run this with 1.234 or later. (report)
Comments (7)
Jun 19, 2009
Ed Griebel says:
Any plans on adding support for WebLogic 10.3 now that Cargo 1.0 is implemented,...Any plans on adding support for WebLogic 10.3 now that Cargo 1.0 is implemented, or would it be pretty easy to integrate myself?
Oct 13, 2009
Rafique Anwar says:
Does it really support deploying on a remote JBoss 4.x? There is a open issue: 3...Does it really support deploying on a remote JBoss 4.x? There is a open issue: 3437
Jan 27, 2010
kinwah says:
is it possible to deploy the war or ear as 1 of the build step and not that the ...is it possible to deploy the war or ear as 1 of the build step and not that the end of the build?
Apr 30
ms says:
Feature request: Server restart. Use Context: Plugin deploys a war to tomcat ...Feature request: Server restart.
Use Context: Plugin deploys a war to tomcat server on each build (initiated by svn commit) to represent a dev environment.
Issue: After several clean deployments, plugin hangs on a deployment, requiring a manual tomcat restart which allows the plugin to complete and in turn allowing Hudson to mark the job as complete. Otherwise, the job remains open causing a Hudson job queue buildup.
Maybe its not a prevalent issue and there is another automated way to handle this?
May 05
amigo says:
Version 1.5 is not working for me, no invoke of deployment procedure. Deployment...Version 1.5 is not working for me, no invoke of deployment procedure. Deployment environment tomcat 6.x.
D:\.hudson\jobs\s27_Grid_deploy\workspace>exit 0
Finished: SUCCESS
So I returned to version 1.4, there it is working fine.
D:\.hudson\jobs\s27_Grid_deploy\workspace>exit 0
Deploying D:\.hudson...
Redeploying D:\.hudson...
Undeploying D:\.hudson...[]
Deploying D:\.hudson...[]
Finished: SUCCESS
Jun 30
Rafael says:
Version 1.5 wasn't working for me either.. I wasn't getting any output from it. ...Version 1.5 wasn't working for me either.. I wasn't getting any output from it. Then I revert to 1.4 which worked only on the first deploy. On the next build it tried to deploy to my tomcat again but it tried to deploy to the same context and failed. It really should have done an undeploy then a deploy. SO I just changed my code to use this as part of my maven build command in hudson and switched off the deploy plugin.
tomcat:deploy-only -Dmaven.tomcat.update=true
It would be nice to use the plugin though.
Jun 30
Rafael says:
Actually I remove my deployments from tomcat and started again and the deploy pl...Actually I remove my deployments from tomcat and started again and the deploy plugin is working fine now
. Tomcat must have ben confused. But version 1.5 still isn't working for me.