Use the following ant task definition for deploying to weblogic.
args="-adminurl t3://WEBLOGICSERVERURL:7001 -user USERNAME -password PASSWORD -name APPLICATIONNAME -undeploy"
<target name="weblogic-deploy" depends="weblogic-undeploy">
args="-adminurl t3:// WEBLOGICSERVERURL:7001 -user USERNAME -password PASSWORD -deploy C:\PATHTOEARFILE\scotttiger.ear -name APPLICATIONNAME -upload"
It’s been hard to find time between our full throttle ADF 11g development and updating content on my blog but finally after getting back from OOW13 I was inspired to spend some more time on putting together this latest bit about automated weblogic deployment. After following a pair of great tutorials by John Stegeman and Chris Muir I was able to successfully setup our own Hudson build server. Please see the below links I used for reference:
The video tutorial series is broken up to four parts and it is intended to visually guide you from beginning to end procedures for setting up your own Hudson build server. Also it ties together the above two resources and includes a couple of unmentioned settings within the ant build script. The only components that are not discussed is setting up a SVN repository & standalone weblogic server instance.
Here is the basic topology & flow of our ADF CI setup:
- Developer commits their code into svn server.
- Hudson server starts a job on a set time interval to poll svn for changes
- Upon picking up changes, a build is kicked followed by junit/selenium tests (I will try to put together a post on this in the future).
- A successful build will produce an ear file and finally it is uploaded to the standalone weblogic QA server.
Good podcast on what hudson can do for you (added 10/17/2013)
Components I am using
JDK 6u24 (bundled with JDev)
Ant 1.7 (bundled with JDev)
Below is a short 4 part video series I made showing the steps described above.
Part 1 Glassfish & Hudson install & configuration.
Part 2 Create and version a simple ADF application.
Part 3 Generate and modify ant build script to create ear file & undeploy/deploy tasks for weblogic.
Part 4 Define a Hudson job for automatic deployment.
I realized that dubbing voice over after the video was created is actually sort of pesky as I need to sync with the recorded actions so I decided to use boring captions but in the future I will include audio. Thanks for reading and feel free to post any questions or suggestions.