Skip to content

devopsenggineer/sonarqube-jenkins-example

Repository files navigation

This project is an example of how to add SonarQube quality gates to a Jenkins build using the SonarQube Scanner Jenkins plugin.

For a full walkthrough, see the accompanying article.

Running

Ensure you have a local installation of Docker.

Run docker-compose up -d --build and you'll have access to:

Configuration

Jenkins comes pre-configured, but you'll need to configure SonarQube as described in the article Add SonarQube quality gates to your Jenkins builds.

Usage

Once that's setup, try running the two pipeline jobs:

  1. A job that runs against a codebase with good code (expect to pass)
  2. A job that runs against a codebase with bad code (expect to fail)

About

Example project with SonarQube quality gates as part of Jenkins build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published