At the October Middleware Forum we ran a session on ‘Build Automation with Hudson’ which completed the Continuous Integration journey we had been working on all year. The slides are available here if you want to see what was presented. In this blog post we are going to run through how to install Hudson (and Artifactory) and get a build automation job up and running. Ultimately we want to be able to make a change to our code, check it in to our local GIT repository and then have Hudson run our maven build job on the code. The maven code will install weblogic, create a domain, deploy our code, optionally run some tests and then delete weblogic. Read on to see how we did it
In a previous post we created a WLST script that created a WebLogic domain from scratch, turned the servers on and deploy a jar file. It almost provided everything we needed from a continuous integration perspective, except that we needed WebLogic installed before we could run the WLST script. This meant that we couldn’t spin up a blank VM and start this script. The immediate solution to that would probably be to script the installation of WebLogic (you can create a silent install file so that WebLogic installs without any user intervention required). A better solution would be to use Maven. Maven is a project build tool that we can use to compile our java projects and run various plugins to install WebLogic, start servers and deploy code. For more information on Maven check out the Maven presentation from the July Oracle Middleware Forum.
(The example Maven file from this post is available at Github: https://github.com/Joelith/Maven-Install-WLS)
Thanks to all those who attended our second Oracle Middleware Forum in Canberra, hopefully you all got something out of it. As always for those of you who were unable to make it, we’ve uploaded the presentations and provided any code resources below. Hopefully you can all join us next month (the 20th of August) where we will be covering:
- Introduction to SOA 12c
- Continuous Integration Fundamentals: Version Control
- Management, monitoring and debugging using Enterprise Manager 12c
Also, if you have any feedback about the event or suggestions for future topics please let us know. Also If you are in the Canberra area and would like to have a more in-depth discussion on any of the topics discussed at the forum (or you have any middleware-related questions) please reach out to Damien or myself. If you aren’t in Canberra and would like more information either post in the comments or ask your local Oracle Middleware representative.