Day-33: Jenkins Pipelines (Freestyle vs Declarative)


🚀 1️⃣ What is a Jenkins Pipeline?

Jenkins Pipeline defines your CI/CD workflow as code.

Instead of manually clicking in the UI, you write a script (Jenkinsfile) that tells Jenkins how to:

Jenkins Pipelines are more scalable, automated, and version-controlled.


2️⃣ Pipeline Types

Jenkins supports two main pipeline types:

A) Freestyle Jobs

B) Pipeline Jobs (Scripted or Declarative)

Let’s break them down 👇


Freestyle Jobs

Freestyle Job = basic GUI-based job.