https://github.com/hantdev/jenkins-demo
https://github.com/hantdev/jenkins-demo
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hantdev/jenkins-demo
- Owner: hantdev
- Created: 2025-09-11T12:08:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-09-19T03:59:00.000Z (7 months ago)
- Last Synced: 2025-09-19T04:30:28.336Z (7 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins Demo: CI/CD with Gitleaks, SonarQube, and Nexus
This project provides a minimal Node.js service and a Jenkins pipeline that runs:
- Checkout, Gitleaks secret scan, ESLint, Jest tests
- SonarQube analysis
- Docker build and push to Nexus Repository
You mentioned Jenkins is already deployed on Kubernetes per the guide [How To Install Jenkins on Kubernetes](https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-kubernetes). We build on top of that.
## Project structure
```
src/ # Express app
test/ # Jest tests
Dockerfile # App container
Jenkinsfile # CI/CD pipeline
.gitleaks.toml # Gitleaks config
sonar-project.properties
```
## Prerequisites
- Jenkins with Docker available on the agent (DinD or host Docker)
- Kubernetes cluster reachable from your workstation and Jenkins
- Optional: Ingress Controller if you plan to expose SonarQube/Nexus externally