← back to all posts

20 June 2026

Project: SonarQube + Trivy DevSecOps Lab

A hands-on DevSecOps lab with Jenkins, SonarQube, Docker, Trivy, quality gates, and remediation notes.

projectjenkinssonarqubetrivyci-cd

This is a practical lab because it is easy to demonstrate: build an app, run quality checks, scan the image, fail on important findings, then document the fix.

What the repo will include

  1. docker-compose.yml for Jenkins and SonarQube.
  2. A small Java or Node application.
  3. A Jenkinsfile with build, unit test, SonarQube, Docker build, and Trivy stages.
  4. Screenshots of a passing pipeline and a failing security gate.
  5. A before-and-after remediation section in the README.

Pipeline shape

checkout
  -> install dependencies
  -> unit tests
  -> SonarQube analysis
  -> quality gate
  -> Docker build
  -> Trivy image scan
  -> publish reports

Why this matters

Many teams can install tools. Fewer teams can explain what the tool found, decide whether it should block a release, and help developers fix it.

This lab will show that practical layer: clear gates, useful output, and remediation notes.