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

Jenkins 2.x integration with Sonar 6.3


In this chapter, we will use SonarQube 6.3 for static code analysis. Go to https://www.sonarqube.org/downloads/ and download the latest version available:

  1. Extract files:
  1. Go to the bin directory and, based on the operating system and platform of the operating system, go to a specific directory:
  1. Execute StartSonar.bat in the command window. On Linux or MacOS execute the .sh file in the respective folder.
  1. Once SonarQube is up and running, open http//:localhost:9000 in a browser to visit the SonarQube dashboard:
  1. Click on Login and give a default username and password --admin and default to-- log in as an administrator:
  1. As of now, there is no project available in the SonarQube dashboard:
  1. Click on the Quality Profiles tab to get details on the default quality profiles available in SonarQube.
  1. Quality Profiles are the heart of SonarQube; they are nothing but sets of rules specific to a language. If not mentioned explicitly, all the projects are analyzed with default...