Book Image

Jenkins 2.x Continuous Integration Cookbook - Third Edition

By : Mitesh Soni, Alan Mark Berg
Book Image

Jenkins 2.x Continuous Integration Cookbook - Third Edition

By: Mitesh Soni, Alan Mark Berg

Overview of this book

Jenkins 2.x is one of the most popular Continuous Integration servers in the market today. It was designed to maintain, secure, communicate, test, build, and improve the software development process. This book will begin by guiding you through steps for installing and configuring Jenkins 2.x on AWS and Azure. This is followed by steps that enable you to manage and monitor Jenkins 2.x. You will also explore the ways to enhance the overall security of Jenkins 2.x. You will then explore the steps involved in improving the code quality using SonarQube. Then, you will learn the ways to improve quality, followed by how to run performance and functional tests against a web application and web services. Finally, you will see what the available plugins are, concluding with best practices to improve quality.
Table of Contents (11 chapters)

Creating a Selenium test case using Eclipse

Let's go step by step to create a sample functional test case and then execute it using Jenkins.

The PetClinic project is a Maven-based Spring application and we will create a test case using Eclipse and Maven. Hence, we will utilize the m2eclipse plugin in Eclipse.

Getting ready

You will need Eclipse Java EE IDE for Web Developers, Version: Mars.2 Release (4.5.2), Build ID: 20160218-0600.

Go to the Eclipse Marketplace and install the Maven integration for the Eclipse plugin:

  1. Create a Maven Project using a wizard in Eclipse IDE:
  1. Select Create a simple project (skip archetype selection) and click on Next:
  1. Go through the wizard and create a project. It will take some time...