Book Image

Learning Continuous Integration with Jenkins - Second Edition

By : Nikhil Pathania
Book Image

Learning Continuous Integration with Jenkins - Second Edition

By: Nikhil Pathania

Overview of this book

In past few years, agile software development has seen tremendous growth. There is a huge demand for software delivery solutions that are fast yet flexible to numerous amendments. As a result, Continuous Integration (CI) and Continuous Delivery (CD) methodologies are gaining popularity. This book starts off by explaining the concepts of CI and its significance in the Agile. Next, you'll learn how to configure and set up Jenkins in many different ways. The book exploits the concept of "pipeline as code" and various other features introduced in the Jenkins 2.x release to their full potential. We also talk in detail about the new Jenkins Blue Ocean interface and the features that help to quickly and easily create a CI pipeline. Then we dive into the various features offered by Jenkins one by one, exploiting them for CI and CD. Jenkins' core functionality and flexibility allows it to fit in a variety of environments and can help streamline the development process for all stakeholders. Next, you'll be introduced to CD and will learn how 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 CI and CD using Jenkins.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

The new Jenkins pipeline job


Those who are already familiar with Jenkins are well aware of the freestyle Jenkins job. The classic way of creating a pipeline in Jenkins is by using the freestyle job, wherein each CI stage is represented using a Jenkins job (freestyle).

The Jenkins freestyle job is a web-based, GUI-propelled configuration. Any modification to the CI pipeline requires you to log in to Jenkins and reconfigure each of the Jenkins freestyle jobs.

The concept of Pipeline as Code rethinks the way we create a CI pipeline. The idea is to write the whole CI/CD pipeline as a code that offers some level of programming and that can be version controlled.

The following are some of the advantages of taking the Pipeline as Code route:

  • It's programmable
  • All of your CI/CD pipeline configurations can be described using just a single file (Jenkinsfile)
  • It's version controllable, just like any other code
  • It comes with an option to define your pipeline using the Declarative Pipeline syntax, which is...