Jenkins Pipeline — Declarative, Scripted, and Blue Ocean Explained
· 6 min read
Jenkins has been around since 2011 (as Hudson since 2004) and it runs over 50% of CI/CD pipelines worldwide. Some people say it is old and clunky. They are partially right. But Jenkins is also incredibly powerful, endlessly extensible, and — unlike SaaS alternatives — you own every piece of it.
Jenkins Architecture: Controller and Agents
Before writing a single pipeline, understand how Jenkins works under the hood.
The Controller (formerly "Master") is the brain. It manages configurations, schedules builds, serves the web UI, and distributes work. Agents (formerly "Slaves") are the machines that actually run your builds. You can have dozens of agents with different operating systems, tools, and capabilities.
┌──────────────┐ ┌──────────────┐
│ Controller │────>│ Agent: Linux │ (builds, tests)
│ (brain) │ └──────────────┘
│ │ ┌──────────────┐
│ Web UI │────>