Your Jenkins DevSecOps environment is fully operational with all security tools installed and ready.
URL: http://localhost:8081
-
Open your browser and navigate to:
http://localhost:8081 -
You should see the Jenkins dashboard (no login required initially)
-
If prompted for setup, click "Skip and continue as admin"
-
Go to: Manage Jenkins → Plugins → Available plugins
-
Search and install these plugins:
- ✅ HTML Publisher Plugin
- ✅ Warnings Next Generation Plugin
- ✅ Pipeline Stage View Plugin
- ✅ Blue Ocean (optional, for modern UI)
-
Click "Install without restart"
-
Go to: Manage Jenkins → Security
-
Configure Global Security:
- Security Realm: Jenkins' own user database
- Authorization: Logged-in users can do anything
- ✅ Allow users to sign up
-
Create Admin User:
- Click "Sign up" in top right
- Username:
admin - Password:
admin123 - Full name:
DevSecOps Admin - Email:
admin@devsecops.local
- Go to: Manage Jenkins → Credentials → System → Global credentials
- Add Credentials:
- Kind: Username with password
- Username:
eknathdj(your GitHub username) - Password: Your GitHub Personal Access Token
- ID:
github-creds - Description: GitHub Personal Access Token
- Add Credentials (same location):
- Kind: Username with password
- Username: Your DockerHub username
- Password: Your DockerHub password
- ID:
dockerhub-creds - Description: DockerHub Registry Credentials
-
Click "New Item"
-
Configure:
- Name:
devsecops-sample-app - Type: Pipeline
- Click "OK"
- Name:
-
Pipeline Configuration:
- Description: DevSecOps CI/CD Pipeline with Security Scanning
- ✅ GitHub project:
https://github.com/eknathdj/devops-sample-app - Build Triggers: ✅ GitHub hook trigger for GITScm polling
- Pipeline Definition: Pipeline script from SCM
- SCM: Git
- Repository URL:
https://github.com/eknathdj/devops-sample-app - Credentials: Select
github-creds - Branch:
*/main - Script Path:
Jenkinsfile.devsecops
-
Click "Save"
-
Go to your pipeline:
devsecops-sample-app -
Click "Build Now"
-
Monitor the build:
- Click on build number (e.g.,
#1) - Click "Console Output"
- Watch the security scans execute
- Click on build number (e.g.,
🔧 Setup & Checkout (1-2 min)
🔍 Pre-Build Security Scans (5-8 min)
├── 🔐 Secret Detection
├── 📋 SAST Analysis
└── 🛡️ Infrastructure Security
🔨 Build & Test (2-3 min)
🔍 Container Security Scans (8-12 min)
├── 🛡️ Trivy Vulnerability Scan
└── 🔍 Trivy Configuration Scan
📊 Security Report Generation (1-2 min)
🚀 Deploy (2-3 min) [main branch only]
After the build completes:
-
Check Build Artifacts:
- Download
security-scan-results.tar.gz - View individual JSON reports
- Download
-
Security Dashboard:
- Look for "DevSecOps Security Report" link
- Review security metrics and findings
-
Console Output:
✅ Secret Detection: No secrets detected ✅ SAST Analysis: 0 critical, 2 high issues ✅ Container Security: 0 critical, 3 high vulnerabilities ✅ All security gates passed!
For automatic builds on code changes:
- Go to GitHub:
https://github.com/eknathdj/devops-sample-app - Settings → Webhooks → Add webhook
- Payload URL:
http://YOUR_IP:8081/github-webhook/ - Content type:
application/json - Events: Just the push event
After completing these steps, you should have:
- ✅ Jenkins accessible at
http://localhost:8081 - ✅ All security tools working (8 tools installed)
- ✅ DevSecOps pipeline created and functional
- ✅ Security scans running automatically
- ✅ Security reports generated with each build
- ✅ Security gates enforced with configurable thresholds
# Check if container is running
docker ps | findstr jenkins-devsecops
# Check logs
docker logs jenkins-devsecops
# Restart if needed
docker-compose -f docker-compose-simple.yml restart# Test tools in container
docker exec jenkins-devsecops bash -c "
gitleaks version &&
trivy version &&
semgrep --version &&
checkov --version
"- Check Console Output for specific errors
- Verify credentials are set up correctly
- Check security tool logs in build output
- Adjust security thresholds if needed
You now have a production-ready DevSecOps pipeline with:
- 8 Security Tools integrated and working
- Automated Security Scanning on every build
- Security Gate Enforcement with configurable thresholds
- Comprehensive Security Reporting and dashboards
- CI/CD Integration with GitHub and DockerHub
This is an enterprise-grade DevSecOps implementation that includes:
- Shift-Left Security - Catching issues early in development
- Multi-Layer Security Scanning - Secrets, SAST, containers, IaC
- Automated Policy Enforcement - Security gates with thresholds
- Comprehensive Reporting - JSON reports and HTML dashboards
- CI/CD Integration - Seamless integration with existing workflows
🎯 Ready to start your first secure build? Go to http://localhost:8081 and begin!