# CI/CD Pipelines — Cheat Sheet
Metgud TechHub · Learn • Build • Master

## Commands & snippets
1. mvn clean package ; mvn test
2. Jenkinsfile: pipeline { agent any; stages { stage('Build') { steps { sh 'mvn -B package' } } } }
3. GitHub Actions: workflow in .github/workflows/ci.yml, trigger 'on: [push]'
4. GitLab CI: stages [build, test, deploy] in .gitlab-ci.yml
5. sonar-scanner -Dsonar.projectKey=app
6. Deployment strategies: rolling, blue-green, canary
