By Shay Shmeltzer-Oracle on Apr 28, 2015
Following up on the previous blog that showed how to get your ADF application into the Developer Cloud Service git repository, this entry will show you the next step in the lifecycle - executing builds.
The Oracle Developer Cloud Service (DevCS) supports build automation with both Maven and Ant scripts - and in this demo I'm showing you how to use the Ant option. One of the unique aspects of DevCS for customers who are using Oracle ADF and JDeveloper is that the cloud comes pre-configured with the ADF libraries needed to compile your code, and also with support for OJDeploy so you can leverage deployment profiles that you defined for your application.
In fact DevCS comes with support for two ADF versions - 220.127.116.11.1 and 12.1.3 (as of the time of this blog).
In the video below you'll see
- How to add a build file for your ADF application
- How to configure the build file to work in the cloud environment
- How to define a build job and execute it
- How to look at the log files for the build job
- How to automate the build execution to happen when changes are committed to the git repository
The build in the example above just does the packaging, but in more realistic scenarios you can use similar build processes to create ADF libraries from projects, automate testing, modify configuration and more.
There are a couple of files that are used in the demo that you might want to use in your implementation:
The build.xml file:
The build.properties file I used can be found here.
The mask for the build automatic execution is */1 * * * *
Note that in the properties file there are references to environment variables that you will need to change if you are looking to deploy an 11.1.1.* app - specifically the options for 12 and 11 are:
The next logical step in your app lifecycle is to automate the deployment of the ADF application to the Oracle Java Cloud Service. If you are interested in this check out - Automating Deployment of the Summit ADF Sample Application to the Oracle Java Cloud Service