How to Create a CI/CD Pipeline in Jenkins – Step-by-Step Guide (2025)

https://devopshowto.com

What is CI/CD?

CI/CD = Continuous Integration & Deployment. . It automates code testing, building & delivery. . 💡 Must-have for modern DevOps!

Why Jenkins?

Jenkins is open-source, plugin-rich & widely used. . Integrates easily with GitHub, Docker, AWS & more. . ✅ Perfect for CI/CD pipelines!

Step 1: Install Jenkin

Install Jenkins on your server or Docker. . Need Java 11+, port 8080 open, and access to terminal. . 📌 Use LTS version for stability.

Step 2: Install Plugin

– Pipeline plugin . – Git plugin . – SonarQube plugin (optional) . 🧩 Plugins power Jenkins!

Step 3: Create Pipeline Job

Go to: Jenkins → New Item → "Pipeline" . Name it, and choose "Pipeline project" . Now configure SCM & pipeline script.

Step 4: Jenkinsfile

Define your CI/CD logic in Jenkinsfile . Stages: 🔹 Clone → 🔹 Build → 🔹 Test → 🔹 Deploy . Use declarative syntax for clarity.

Step 5: GitHub Integration

Link GitHub repo via Webhook . Push = auto-trigger pipeline . 🎯 Fully automated CI/CD!

Optional: SonarQube Integration

Add quality gates to your pipeline . Catch bugs & vulnerabilities early . ✅ Shift-left security in action