Real Project: Deploy a Java App with Jenkins, SonarQube, Nexus, Docker & Kubernetes
The complete DevOps pipeline you'll build in this series — 6 servers, 7 tools, 1 Jenkinsfile. Start here.
Series
End-to-End CI/CD Pipeline Project
- 0Real Project: Deploy a Java App with Jenkins, SonarQube, Nexus, Docker & KubernetesReading
- 1CI/CD Project Part 1: Provision AWS Infrastructure
- 2CI/CD Project Part 2: Install Kubernetes with kubeadm
- 3CI/CD Project Part 3: Jenkins + Nexus + SonarQube + Docker
- 4CI/CD Project Part 4: The Complete Jenkinsfile (11 Stages)
- 5CI/CD Project Part 5: Monitoring with Prometheus + Grafana
End-to-End CI/CD Project — Overview
You'll build the pipeline real teams run in production: developer pushes to Git → tests run → code quality gate → security scan → artifact stored → Docker image built and pushed → deployed to Kubernetes → monitored.
Architecture (memorise this picture!)
Developer
| git push
v
GitHub (private repo)
|
v
Jenkins ──────────┐
/ | \ \
v v v v
Maven Trivy SonarQube Nexus (build, scan, quality, artifact store)
|
v
Docker build + tag
|
v
Push image to Docker Hub
|
v
Kubernetes (Deployment + Service)
|
v
Prometheus + Grafana (metrics + dashboards)
|
v
Email on Success / Fail
Servers we'll spin up on AWS (6 EC2 t2.medium)
| # | Server | Purpose |
|---|---|---|
| 1 | Kubernetes master | Control plane |
| 2 | K8s worker node 1 | Runs pods |
| 3 | K8s worker node 2 | Runs pods |
| 4 | Jenkins | Orchestrates the pipeline |
| 5 | SonarQube + Nexus | Code quality + artifact/image store |
| 6 | Prometheus + Grafana | Monitoring |
What each part of the series covers
| Part | What you'll do |
|---|---|
| 1 | Provision the 6 AWS VMs + security groups |
| 2 | Install Kubernetes with kubeadm (master + workers) |
| 3 | Install Jenkins, Nexus (Docker), SonarQube (Docker) |
| 4 | Write the Jenkinsfile — 11 stages from checkout to deploy |
| 5 | Install Prometheus + Grafana, add email notifications |
Prerequisites
- Comfortable with Linux commands (see Linux series).
- Basic Git & GitHub (see Git cheat sheet).
- Understand Docker basics.
- AWS free-tier account (or any 6 Ubuntu VMs).
Real-world value
By the end you can put on your CV: "Built a production-grade CI/CD pipeline with automated code-quality gates, security scans, artifact management, containerization, Kubernetes deployment and monitoring — reduced release cycle from days to under 30 minutes."
That single project has landed hundreds of first DevOps offers. Let's build it.
Keep reading
You may also like
devops
Git Handbook – Quick Reference
A complete collection of Git commands and notes, covering setup, commits, branching, merging, conflicts, and advanced workflows. This handbook is designed as a simple, step‑by‑step guide for beginners and professionals to quickly learn and apply Git in real projects.
devops
Kubernetes Explained for Absolute Beginners
The clearest possible introduction to Kubernetes — what it is, why it exists, and the seven words you need to know.
devops
GitHub Actions: A Complete CI Pipeline
Lint, test, build, publish — a battle-tested workflow template.
Discussion (0)
No comments yet. Be the first to weigh in.