Using Jenkins to build projects hosted on GitHub

You can use the OpenShift Jenkins instance to build your non-OpenShift projects as well. This recipe will use a Maven-based project publicly hosted on GitHub at The goal of this recipe is to build the project whenever you push code to the GitHub repository and send an e-mail in case the build status changes, that is, the build fails or recovers from a build failure. This is the first step an organization takes when they try to introduce CI.

Getting ready

This recipe assumes that you already have a Jenkins-enabled application, as discussed in the Adding Jenkins CI to your application recipe.

How to do it…

Perform the following steps to learn how ...

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.