Day 7: Jenkins Multibranch Pipelines | Production-Ready CI/CD with GitHub PRs
👉 GitHub Repository: https://github.com/CloudWithVarJosh/J...
👉 Jenkins Playlist: • Jenkins: Basics To Production
👉Join the Channel to show your support: / @cloudwithvarjosh
📚 Welcome to Day 7 of Jenkins: Basics to Production!
Today we set up a Jenkins Multibranch Pipeline (MBP) that auto-discovers branches and PRs, builds on pushes, and runs PR Head/Merge checks. We’ll use a private GitHub repo, create feature/ui, trigger builds via manual scans (no webhooks yet), open a PR, and verify build → push → deploy of a Dockerized Flask app on port 5000. We’ll also look at auto-deleting feature branches and branch protection/rulesets for trunk-based CI/CD.
🛠 What You’ll Learn Today
MBP concepts: branch/PR discovery, Head vs Merge strategies, status checks
Create a Multibranch job against GitHub with the right strategies and trust settings
Build, push, and deploy from a Jenkinsfile; verify on localhost:5000
Manual scans (no webhooks) to discover branches/PRs and trigger builds
PR flow: open → build (Head/Merge) → merge to main → build main
Auto-delete source branch on merge and protect main with required checks/rulesets
Kubernetes:
👉 CKA 2025 Playlist: • CKA Certification Course 2025
👉 Kubernetes Projects: • Kubernetes Projects
⏰ Timestamps
00:00:00 Introduction
00:01:00 Multibranch Pipelines — What & Why
00:16:07 Trunk-Based CI/CD: MBP Production Flow
00:38:38 Demo Overview: Jenkins MBP
00:38:51 App & Jenkinsfile Walkthrough (What we’ll deploy)
00:46:12 Step 0 — Create the MBP Job
01:00:55 Step 1 — Create feature/ui and Push
01:11:23 Step 2 — MBP Discovers & Builds the Branch
01:17:08 Step 3, 4, 5 — Open PR, PR Job, Merge, Verify
01:27:40 Step 6 — Auto-delete Branch & Branch Protection
01:35:13 Outro & Next Steps
🔖 Hashtags
#Jenkins #CloudWithVarJosh #CICD #DevOps #JenkinsPipeline #Multibranch #GitHub #PullRequests #Docker #DockerHub #Jenkinsfile #BranchProtection #Rulesets