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

Installing Java and configuring the environment variables


In this section, we will cover installing Jenkins on both Windows and CentOS operating systems.

Installing Java on Windows 10

Go to http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html and download the Java installer for either the 32-bit or 64-bit operating system and follow the wizard to install it.

Execute the java and javac commands from the command window to verify the installation.

Installing Java on CentOS

If Java is not already installed on the system, then you can install it as follows:

  1. Find Java-related packages in the CentOS repository and locate the appropriate package to install by using the following code:
        [root@localhost ~]# yum search java 
        Loaded plugins: fastestmirror, refresh-packagekit, security 
        . 
        . 
        ant-javamail.x86_64 : Optional javamail tasks for ant 
        eclipse-mylyn-java.x86_64 : Mylyn Bridge:  Java Development 
        . 
        . 
       ...