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)

To get the most out of this book

In order to get the most out of of this book you will need to be familiar with Unix programming concepts such as working with the Bash shell, environment variables, and shell scripting, and understand basic commands in Unix. You should be familiar with the concept of version control and know what is meant by a commit, and you'll need to understand how to use Git in particular. You should know basic programming languages concepts because we will use languages such as Golang, Node.js, and Java, which will work as build languages that we use in or CI/CD pipelines and examples.

This book is OS-agnostic, but you will need access to a Unix environment and commands in order to use some of the concepts in this book. So, if you are using Windows, it may be useful to have Git Bash (https://git-scm.com/downloads) and/or the Ubuntu Subsystem installed if possible. You will need to have Git (https://git-scm.com/downloads), Docker (https://docs.docker.com/install/), Node.js (https://nodejs.org/en/download/), Golang (https://golang.org/dl/), and Java (https://java.com/en/download/) installed in your system. It would be very helpful to have a text editor such as Visual Studio Code (https://code.visualstudio.com/download) and a terminal console application.

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-On-Continuous-Integration-and-Delivery under the README section, where you can find all the links to the code files chapterwise . In case there's an update to the code, the links will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Chocolatey installation instructions can be found at chocolatey.org/install."

A block of code is set as follows:

{
"@type": "env_vars",
"@href": "/repo/19721247/env_vars",
"@representation": "standard",
"env_vars": [

]
}

Any command-line input or output is written as follows:

 Rules updated
Rules updated (v6)

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Click Continue and make sure to click on the Agree button."

Warnings or important notes appear like this.
Tips and tricks appear like this.