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

Configuring Ant, Maven, and JDK in Jenkins


The following are the steps to configure Ant, Maven, and JDK in Jenkins:

  1. Open the Jenkins dashboard in a browser with the URL http://<ip_address>:8080. Go to the Manage Jenkins section and click on Global Tool Configuration.
  1. Configure Java based on the installation, as shown in the following screenshot. We can install it automatically:
  1. If Java is already installed, then uncheck the checkbox of Install automatically and give the JAVA_HOME path. If Jenkins, Ant, Maven, and Java are installed on CentOS, the path style will be different than this:
  1. Download Git installer for Windows and install it on the system. Keep the settings as they are in Jenkins after you click on Add Git. If Jenkins, Ant, Maven, and Java are installed on CentOS, the path style will be different than this:
  1. Click on Add Ant and provide a Name and ANT_HOME location. The value that we give in the Name box will be used in build job to identify the Ant version we want to use. This...