Pipeline as code (Jenkinsfile)
Goal: Keep build/deploy logic in git with reviews and repeatability.
- Create a Jenkinsfile in repo.
- Use agents and credentials bindings instead of hardcoding secrets.
- Archive artifacts and publish test reports.
- Add stages for build, test, and deploy with approvals for prod.
- Backup Jenkins home and lock down plugins and admin access.