O'Reilly logo

Jenkins: The Definitive Guide by John Ferguson Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing Your Environment

There are two ways you can tackle this chapter. You can read through it without touching a keyboard, just to get an overview of what Jenkins is about. Or you can get your hands dirty, and follow along on your own machine.

If you do want to follow along at home, you may need to set up some software on your local machine. Remember, the most basic function of any Continuous Integration tool is to monitor source code in a version control system and to fetch and build the latest version of your source code whenever any changes are committed. So you’ll need a version control system. In our case, we’ll be using Git. The central source code repository for our simple project is stored on GitHub. Don’t worry about messing up this repository with your own changes, though: you’ll be creating your own fork of the repository that you can use as you wish. If you haven’t used Git and/or don’t have an account on GitHub yet, don’t worry, we’ll walk through the basics, and the whole installation process is well documented on the GitHub website. We’ll explain how to set it all up in great detail further on.

In this chapter, we’ll be using Jenkins to build a Java application using Maven. Maven is a widely-used build tool in the Java world, with many powerful features such as declarative dependency management, convention over configuration, and a large range of plugins. For our build, we will also be using recent versions of the Java Development Kit (JDK) and Maven, but if you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required