Book Image

Learning Continuous Integration with Jenkins

By : Nikhil Pathania
Book Image

Learning Continuous Integration with Jenkins

By: Nikhil Pathania

Overview of this book

In past few years, Agile software development has seen tremendous growth across the world. There is huge demand for software delivery solutions that are fast yet flexible to frequent amendments. As a result, CI and continuous delivery methodologies are gaining popularity. Jenkins’ core functionality and flexibility allows it to fit in a variety of environments and can help streamline the development process for all stakeholders. This book starts off by explaining the concepts of CI and its significance in the Agile world with a whole chapter dedicated to it. Next, you’ll learn to configure and set up Jenkins. You’ll gain a foothold in implementing CI and continuous delivery methods. We dive into the various features offered by Jenkins one by one exploiting them for CI. After that, you’ll find out how to use the built-in pipeline feature of Jenkins. You’ll see how to integrate Jenkins with code analysis tools and test automation tools in order to achieve continuous delivery. Next, you’ll be introduced to continuous deployment and learn to achieve it using Jenkins. Through this book’s wealth of best practices and real-world tips, you'll discover how easy it is to implement a CI service with Jenkins.
Table of Contents (15 chapters)
Learning Continuous Integration with Jenkins
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Setting up a version control system


Now that we have our Continuous Integration Design ready, let's begin with the version control system (VCS) installation. In this section, we will see how to install and configure Git. This includes:

  • Downloading and installing Git

  • Downloading and installing the Git client

  • Creating a Git repository and uploading code onto it

  • Creating branches

Installing Git

Perform the following steps to install Git:

  1. We will install Git on a Windows machine. You can download the latest Git executable from https://git-scm.com/, as shown in the following screenshot:

  2. Begin the installation by double-clicking on the downloaded executable file.

  3. Click on the Next button.

  4. Accept the terms and conditions and click on the Next button.

  5. Choose the installation directory C:\Program Files\Git. Click on the Next button to proceed.

  6. Select all the necessary options, as shown in the following screenshot. Click on the Next button to proceed.

  7. Give the start menu folder a name. You can choose to skip this...