Jenkins

The CI/CD incumbent for ~20 years. Master/agent architecture, Declarative vs Scripted Pipeline, Configuration-as-Code (JCasC), shared libraries, Kubernetes plugin for ephemeral agents, security hardening after CVE-2024-23897.

Overview

Jenkins, the incumbent

Jenkins is the CI/CD incumbent. JetBrains 2024 DevEcosystem puts it at ~28% share, second only to GitHub Actions (~33%) and ahead of GitLab CI (~21%).

Its history explains a lot about how it works today. It began in 2004 as Hudson, written by Kohsuke Kawaguchi at Sun. In 2011 the community forked it as Jenkins, in a dispute over Oracle's stewardship of the project. Jenkins 2.0 arrived in 2016 and brought the Jenkinsfile and Pipeline, which turned build configuration from web forms into code kept in the repo.

Key concepts

  • Jenkinsfile (Declarative)
  • Configuration-as-Code (JCasC)
  • Shared Libraries (@Library)
  • Kubernetes plugin (ephemeral agents)
  • Pipeline triggers
  • Credentials and secrets
  • Recipe: Jenkinsfile for Java microservice on K8s
  • Recipe: hardening after CVE-2024-23897
  • Recipe: dynamic parallel stages from a list
  • Recipe: blue-green deploy with rollback

Interview questions

  • When does Jenkins still beat GitHub Actions / GitLab CI in 2026?
  • Walk through a production Jenkins setup on Kubernetes — controller, agents, storage, security.
  • Compare Declarative vs Scripted Pipeline — when do you use each?
  • How do you handle plugin security and CVE response in Jenkins?
  • How do you migrate from Jenkins to GitHub Actions or another modern CI?
  • Quick-fire interview answers — Jenkins essentials in one-liners.

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio