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

Creating the Jenkins Continuous Deployment pipeline


This Continuous Deployment pipeline contains seven Jenkins jobs (five old and two new ones). In this section, we will modify Jenkins job 5 and create two new ones.

Modifying the existing Jenkins job

The modification is pretty simple. We need to add a post build step to an existing Jenkins job, Performance_Testing. In this way, the Performance_Testing job will be able to trigger the new Jenkins job, Merge_Production_Ready_Code_Into_Master_Branch, that we will be creating in the coming sections.

Modifying the Jenkins job that performs the performance test

The fifth Jenkins job in the Continuous Deployment pipeline performs the following tasks:

  • It performs the performance test

  • It passes the GIT_COMMIT and BUILD_NUMBER variables to the Jenkins job that performs the performance test (new functionality)

The following figure will help us understand what the Jenkins job does. It's a slightly modified version of what we saw in the previous chapter.

Follow...