Book Image

Hands-On Continuous Integration and Delivery

By : Jean-Marcel Belmont
Book Image

Hands-On Continuous Integration and Delivery

By: Jean-Marcel Belmont

Overview of this book

Hands-On Continuous Integration and Delivery starts with the fundamentals of continuous integration (CI) and continuous delivery (CD) and where it fits in the DevOps ecosystem. You will explore the importance of stakeholder collaboration as part of CI/CD. As you make your way through the chapters, you will get to grips with Jenkins UI, and learn to install Jenkins on different platforms, add plugins, and write freestyle scripts. Next, you will gain hands-on experience of developing plugins with Jenkins UI, building the Jenkins 2.0 pipeline, and performing Docker integration. In the concluding chapters, you will install Travis CI and Circle CI and carry out scripting, logging, and debugging, helping you to acquire a broad knowledge of CI/CD with Travis CI and CircleCI. By the end of this book, you will have a detailed understanding of best practices for CI/CD systems and be able to implement them with confidence.
Table of Contents (18 chapters)

Running Jenkins locally

The following is a screenshot of the main dashboard page of Jenkins. We will go over each item in detail:

Creating a new item

In the following steps, we will create a Freestyle project as a new item, but there could potentially be many more items to add depending on the plugins that are installed:

  1. If you click the New Item link, you will go to the following page:

  1. We have not installed any plugins, so the only type of item we can use is a Freestyle project.
  2. Let's enter a name for the Freestyle project and click OK:
  1. You will be presented with the following screen to configure your Freestyle project:

  1. Let's create a simple build for Jenkins that prints out Hello World:
  1. Make sure...