Adding Jenkins CI to your application

Adding Jenkins to your application is a two-step process. You have to first create the Jenkins server application and then add the Jenkins client cartridge to your application. In this recipe, you will learn how to add Jenkins CI to an existing OpenShift application. After adding Jenkins to your application, each Git push to your OpenShift application Git repository will initiate a Jenkins job that will build the project and then deploy it to OpenShift.

Getting ready

To complete this recipe, you will need three available gears. One gear will be used by the application, and Jenkins will consume the remaining two gears. This chapter will use the application created in Chapter 7, OpenShift for Java Developers

Get OpenShift Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.