Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

SonarQube

( Duration: 2 Days )

SonarQube is a fully automated source code analysis tool that can integrate into your existing development processes and immediately reap the benefits of powerful static analysis that finds bugs, vulnerabilities, and code smells in each build. It produces interactive reports for each build and stores them in projects so you can easily track issues as you work. This SonarQube training course starts with how to build a SonarQube server. Then, it covers how to set up source code analysis with a sample project. You will learn how to analyze a build and then customize the analysis for your project’s needs. Finally, you will integrate source code analysis into a Jenkins build server.

By attending SonarQube workshop, delegates will learn to:

  • Run the SonarQube Docker image and take a tour of the SonarQube UI.
  • Run with embedded H2 database, and map data to external partitions.
  • Run with an external database, such as a PostgreSQL Container.
  • Run with docker-compose and use it to map data partitions and run a database container.
  • Create a SonarQube Project and Get a Key for a Scanner
  • Perform a scan from Gradle.
  • Fix an issue in a SonarQube project and run a new scan.
  • Alter or add a scanning rule.
  • Fix a build that fails a quality gate.
  • Set up Jenkins integration.
  • Install SonarLint in an editor such as IntelliJ and modify some code.
  • Integrate SonarQube into a CI workflow.

  • Prior exposure to JAVA /J2EE, Database skills
  • Some knowledge about IDE, Ant build tool

The SonarQube class is ideal for:

  • Security Administrators
  • Any Security Staff
  • System Administrators
  • DevOps Practitioners
  • IT Operations Staff
  • Release Engineers
  • Configuration Managers
  • Anyone involved with IT infrastructure
  • Developers and Application Team leads
  • ScrumMasters
  • Software Managers and Team Leads

COURSE AGENDA

1

Introduction to SonarQube, Installation and Basic Administration

  • What is SonarQube?
  • Overview of SonarQube's Different Editions, Licenses, and Costs
  • How to Install and Run SonarQube From Docker
    • Run with embedded H2 database, and map data to external partitions.
    • Run with an external database, such as a PostgreSQL Container.
    • Run with docker-compose and use it to map data partitions and run a database container.
  • Administer SonarQube
    • General settings
    • Email
    • SMTP host/port
    • SSL
    • Base URL
    • Add users and groups
    • Overview of permissions and permissions templates
  • Plugins
    • Installing a plugin from the marketplace
    • Installing a plugin from a file
2

Analyzing Code

  • Overview of Analyzing Code With SonarQube
    • How analysis is performed:
      • Scanner requests data from the server
      • Scanner examines files
      • Results are uploaded to the server
      • Server stores analysis in a project; if required, a new project is created
    • Review different scanners and how they are configured and used
      • Gradle
      • .NET
      • Maven
      • Jenkins
      • Azure
      • Ant
      • CLI
    • Discuss the limitations of the community edition versus the developer edition
      • Analyze branches in developer edition
      • Analyze pull requests in developer edition
  • Create a SonarQube Project and Get a Key for a Scanner
    • Add a project, or allow SonarQube to create one
    • Add users
    • Restrict user to specific projects
    • Set analysis scope
      • Adjust file patterns so SonarQube analyzes only the file you want
      • Adjust directory patterns
      • Specify files to be ignored
    • How to generate a token for a scanner
  • View Report Results
    • Report overview page
      • New code/overall code tabs
      • Bugs, vulnerabilities, security hot spots, and technical debt
    • Drill down into issue details
    • View issue descriptions
    • View issues in-line with code
  • SonarQube Scanning Rules
    • View rules for different languages
  • SonarQube Quality Profiles and Quality Gates
    • View quality profiles
    • View quality gates
3

CI Integration

  • Overview of Jenkins and Jenkins Integration With SonarQube

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X