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

Chapter 4. Continuous Integration with Jenkins

Continuous Integration is one of the most important DevOps practices and serves as a base to implement DevOps culture in any organization. It is all about committing code into shared repositories such as Git or SVN multiple times, based on feature completion or bug fixes, and then verifying it with static code analysis using SonarQube, automated builds (using Ant, Maven, or Gradle), executing unit test cases, and creating a package.

There are many tools that can be utilized for Continuous Integration. Jenkins is one of the most popular open source tools that can be utilized for multiple programming languages in which applications can be built. VSTS and Atlassian Bamboo are some other tools or services that can be utilized for Continuous Integration.

This chapter describes in detail how to create and configure build jobs for Java, and how to run build jobs and unit test cases using Ant and Maven build tools. It covers all aspects of running a build...