
Discover how to use SonarQube for continuous code inspection, visualizing vulnerabilities and debt, and integrating with Jenkins to improve code quality across Java and Angular projects.
This video gives you an overview of the project structure and the topics we're going to cover.
Explore the SonarQube architecture—scanner, server, and Elasticsearch—and how plugins extend functionality. Learn the end-to-end scan workflow from CI to web reports on Ubuntu with Jenkins and PostgreSQL.
Set up a dockerized continuous inspection environment using docker compose to run Jenkins, SonarQube, and Postgres, with dedicated volumes and a shared bridge network, accessible via localhost ports.
Set up a dev environment on a VM by running a script from the sonar-jenkins repo to install Maven, Chromium, JDK 8 and 11, Jenkins, PostgreSQL, and SonarQube.
Explore Maven basics, including the project object model and pom.xml, manage dependencies with the local .m2 repository, navigate build lifecycles, and prepare a scan report for Sonar Cube.
Learn how JaCoCo uses offline bytecode instrumentation to generate code coverage reports by inserting probes into .class files, and compare offline versus on-the-fly approaches, including PowerMock considerations.
Learn how to configure JaCoCo in a multi-module maven project, enable offline instrumentation, and generate reliable java test coverage reports for sonar analysis.
Generate angular unit test coverage data by configuring a local SonarQube endpoint, creating a token, and using Maven to run a sonar scan that produces coverage reports.
Explore configuring angular code coverage with sonar by organizing multi-module maven projects, managing node and npm versions, and running npm scripts to generate and publish sonar properties and coverage data.
Explore a SonarQube project report strategy for 2025, linking code quality metrics, test data, code smells, and technical data with ldap and auth providers, using user groups for scoped access.
Post locally generated test reports to SonarQube by configuring two projects (Angular and Java), running mvn clean verify and mvn sonar with tokens, and validating results in the SonarQube UI.
Apply SonarQube to your project by creating a SonarQube report, examining code coverage, bugs, maintainability, and security with JaCoCo, using a Maven scan or a build profile.
In this lecture we cover the fact that Docker images, containing older versions the Jenkins software, are not explicitly marked as unsupported. This hinders developer experience, and often times leads to frustration due to the lack of documentation or clear visibility in the Docker container. I also cover how one can learn from this experience and build a better open source product.
Learn how SonarQube analyzes multiple languages with static code analysis of source and compiled code, producing quality measures, issues, security hotspots, and insights into cyclomatic and cognitive complexity.
Learn how cyclomatic complexity, a McCabe metric, evaluates a program by the control flow graph and linearly independent paths, with rules for booleans, blocks, loops, and switches.
Explore cognitive complexity as a SonarQube metric that goes beyond cyclomatic complexity by measuring how hard the control flow is to understand, guiding maintainable, clean code.
Master advanced SonarQube configuration, including quality gates, quality profiles, and rules for clean as you code. Create custom gates and leverage webhooks for automation.
Explore expert tips for integrating SonarQube with your workflow, including time estimates, unit tests, and handling 0% coverage issues to boost code quality and sustainability.
If you’re looking for a hands-on practical course to integrating continuous code inspection of your Java and Angular applications, you’ve come the right place.
The course that will guide you through the process of installing, integrating and using SonarQube with applications that utilize the Maven build system.
As a byproduct, you will also get to know DevOps tools like Jenkins and learn how to setup continuous code inspection for your codebase.
This course is focused on Maven projects. It reflects all scenarios that can occur during the integration of SonarQube with your single- or multi module Maven applications. We will briefly go over maven basics, and we will discuss single module Java applications, single module Angular applications, as well as multi-module mixed applications, where your Java and Angular codebase is placed in different modules.
Finding the right pieces to the puzzle is often times demanding, but using the resources I’ve prepared, you will be able to configure your projects without wasting any valuable time on research.
By the end of the course, you will get to know how to implement continuous code inspection with SonarQube automated by Jenkins, and take the firsts steps to developing an easily maintainable product with high quality.
DURING THE COURSE, YOU WILL LEARN TO:
Setup your Jenkins and SonarQube on a Linux Virtual Machine or with Docker containers
Integrate your Maven Projects with SonarQube
Create code coverage reports manually
Create a Jenkins pipeline that automates scanning for you
Identify bugs, code smells, vulnerabilities and code debt in SonarQube
Create quality gates and quality profiles
Understand maintainability, reliability and security ratings in SonarQube