Book Image

Jenkins Essentials - Second Edition

By : Mitesh Soni
Book Image

Jenkins Essentials - Second Edition

By: Mitesh Soni

Overview of this book

<p>In agile development practices, developers need to integrate their work frequently to fix bugs or to create a new feature or functionality. Jenkins is used specifically for Continuous Integration, helping to enforce the principles of agile development. This book focuses on the latest and stable release of Jenkins (2.5 and later), featuring the latest features, such as Pipeline as Code, the new setup experience, and the improved UI. With the all-new Pipeline as Code feature, you will be able to build simple or advanced pipelines easily and rapidly, hence improving your teams' productivity.</p> <p>This book begins by tackling the installation of the necessary software dependencies and libraries you'll need to perform Continuous Integration for a Java application. From there, you'll integrate code repositories, applications, and build tools for the implementation of Continuous Integration.</p> <p>Finally, you will also learn how to automate your deployment on cloud platforms such as AWS and Microsoft Azure, along with a few advanced testing techniques.</p>
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Build Pipeline


Continuous Integration and Continuous Delivery have become popular practices for application development. The Build Pipeline plugin provides a pipeline view of upstream and downstream connected jobs that typically form a build pipeline, with the ability to define manual triggers or an approval process. We can create a chain of jobs by orchestrating version promotion through different quality gates, before we deploy it in production.

Before starting with the Build Pipeline plugin, let's create a job to deploy into a production environment. We will use the Deploy to Container plugin for application deployment in remote Tomcat.

  1. Click on New Item in the Jenkins Dashboard and give it a name. Click on OK:
  1. Configure a post-build action similar to what we configured in the PetClinic-Deploy job:
  1. Click on Save and Apply.

In the next section, we will configure upstream and downstream relationships between all the jobs we have created so far.

Upstream and downstream jobs

An upstream job is a...