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

Deploying a WAR file from Jenkins to AWS Elastic Beanstalk


AWS Elastic Beanstalk is a Platform as a Service (PaaS). We will use it to deploy the PetClinic application. These are the steps to deploy an application on AWS Elastic Beanstalk:

Let's create a sample application in Elastic Beanstalk to understand how Elastic Beanstalk works and then we will use the Jenkins plugin to deploy an application into it:

  1. Click on Services in the AWS management console and select AWS Elastic Beanstalk. Create a new application named petclinic. Select Tomcat as the Platform and select the Sample application radio button:
  1. Verify the sequence of events for the creation of a sample application:
  1. It will take some time, and once the environment has been created, it will be highlighted in green:
  1. Click on the petclinic environment and verify that you can see Health and Running Version in the dashboard:
  1. Verify that you can see the environment ID and URL. Click on the URL and verify that you can see the default page:
  1. Install...