Internative Logo

What Is Jenkins? Open-Source CI/CD Automation Server Explained

What Is Jenkins? Open-Source CI/CD Automation Server Explained

Before CI servers were common, a broken build was often discovered days later, when someone tried to put several weeks of changes together. Jenkins became one of the tools that ended that habit: a server that builds and tests the code every time it changes, and tells the team within minutes when something breaks. Many newer CI/CD services now live inside code platforms, but Jenkins is still running delivery pipelines in a large number of organisations, especially where they need full control over where and how their builds run.

This article explains what Jenkins is, where it came from, how its controller, agents and pipelines work, when it is the right choice and how it compares with GitHub Actions, GitLab CI/CD and Bitbucket Pipelines.

What is Jenkins?

Jenkins is an open-source automation server for continuous integration and continuous delivery (CI/CD). It runs on your own infrastructure, watches your repositories, and executes pipelines that build, test, package and deploy software. It is written in Java, released under the MIT licence, and extended through a very large plugin ecosystem.

Jenkins began as Hudson, a project Kohsuke Kawaguchi wrote while working at Sun Microsystems; Hudson 1.0 was released in February 2005. After Oracle acquired Sun, a dispute over the control of the project and the Hudson name followed. In January 2011 the community voted to continue under a new name, and the first Jenkins release, version 1.396, came out on 2 February 2011. Oracle kept Hudson going separately for a while, but most developers and plugins moved to Jenkins.

Jenkins 2.0, released on 20 April 2016, put Pipeline at the centre: build and deployment steps defined as code in a Jenkinsfile stored with the application. In March 2019 Jenkins became one of the founding projects of the Continuous Delivery Foundation, part of the Linux Foundation, where it reached graduated status in 2020. The project ships weekly releases and a long-term support (LTS) line for teams that prefer slower, more conservative updates.

How Jenkins works

Controller and agents. A Jenkins installation has a controller, which stores configuration, schedules work and serves the web interface, and one or more agents, which actually run the builds. Agents can be permanent servers, virtual machines or containers created on demand, for example as pods in a Kubernetes cluster through the Kubernetes plugin. Each agent offers executors, the slots in which jobs run.

Jobs and pipelines. The oldest form of work is a freestyle job configured through the web interface. Modern Jenkins uses Pipeline: a Jenkinsfile that describes stages such as Build, Test and Deploy. Declarative syntax covers most needs with a fixed structure; scripted syntax, written in Groovy, allows any logic.

Multibranch and organisation scanning. Jenkins can scan a repository or a whole organisation on GitHub, GitLab or Bitbucket, create a pipeline for every branch and pull request that contains a Jenkinsfile, and report the results back as status checks.

Plugins. Almost everything beyond the core is a plugin: source control integrations, credentials, cloud agents, notifications, test reports, Docker builds. This is Jenkins' strength and its main maintenance cost, because plugins have to be kept up to date and compatible with each other.

Key features

  • Pipeline as code with Jenkinsfile, in declarative or scripted syntax.
  • Shared libraries that let a platform team reuse pipeline code across many repositories.
  • Distributed builds across many agents, operating systems and architectures.
  • Configuration as Code (JCasC), so the controller itself is defined in YAML and can be rebuilt reproducibly.
  • Credentials management for keys, tokens and certificates, with scoping per folder or job.
  • Integrations with almost any tool through plugins, from source control and artifact repositories to Ansible, Terraform and Helm.
  • Runs anywhere Java runs: Linux, Windows, macOS, containers and air-gapped networks.

Where Jenkins is used

  • Enterprises with on-premise infrastructure, where builds have to run inside their own network and close to internal systems.
  • Hybrid and multi-platform builds: Windows, Linux and macOS agents, embedded targets or special hardware.
  • Pipelines that span many systems: code from several repositories, test environments, artifact stores, ticketing and approval tools.
  • Regulated environments that need full control over where code, credentials and build artifacts live.
  • Long-running existing estates, where years of jobs and shared libraries already encode the delivery process.

When to choose Jenkins, and when not to

Choose Jenkins when:

  • You need a self-hosted CI/CD server with full control over the network, the agents and the data.
  • Pipelines integrate many tools or unusual build targets that hosted CI services do not support well.
  • Your code lives on several platforms and you want one automation server in front of all of them.
  • You have people who will own the server: upgrades, plugins, security and backups.

Think twice when:

  • Your code is on GitHub, GitLab or Bitbucket and a standard build, test and deploy pipeline is enough. Their built-in CI/CD needs no server and much less upkeep.
  • Nobody can take ownership of plugin updates and security advisories. An unmaintained Jenkins controller is a real security risk, because it holds credentials to many systems.
  • The team wants a fully managed service with no infrastructure to run.
  • You are starting a new, small project. The setup and maintenance effort is hard to justify for a single repository.

Jenkins and its alternatives

ToolHostingConfigurationMaintenanceBest fit
JenkinsSelf-hostedJenkinsfile (Groovy) and pluginsHigh: server, agents, pluginsFull control, complex or on-premise pipelines
GitHub ActionsGitHub, or self-hosted runnersYAML in .github/workflowsLow with hosted runnersCode on GitHub
GitLab CI/CDGitLab.com or self-managed.gitlab-ci.ymlLow on GitLab.com, medium self-managedCode on GitLab, one DevOps platform
Bitbucket PipelinesAtlassian cloud, self-hosted runnersbitbucket-pipelines.ymlLowBitbucket and Jira teams

Jenkins vs GitHub Actions. GitHub Actions is built into GitHub: workflows are YAML files in the repository, jobs run on hosted or self-hosted runners, and reusable steps come from a large marketplace. There is no server to maintain. Jenkins is a separate server you run, configure and secure yourself, and it works with code on any platform. Choose GitHub Actions when your code is on GitHub and a hosted service is acceptable; choose Jenkins when you need self-hosting, deep customisation or pipelines spanning many systems.

Jenkins vs GitLab CI/CD. GitLab CI/CD is part of the GitLab platform, so code, merge requests, pipelines, registry and deployment history sit together, and it can be self-managed too. It covers most of what teams historically used Jenkins for, with less plugin maintenance. Jenkins remains more flexible when the pipeline has to orchestrate tools that live outside the code platform.

Jenkins vs Bitbucket Pipelines. Bitbucket Pipelines is the natural choice for teams on Bitbucket and Jira who want a simple, managed pipeline. Jenkins is used alongside Bitbucket when builds must run on-premise or need agents the hosted service does not provide.

For the reasoning behind CI/CD as a practice, see DevOps and CI/CD: continuous improvement in software development.

How we use Jenkins at Internative

We use Jenkins on projects that need a high degree of flexibility and self-hosted control over CI/CD. Its mature plugin ecosystem lets us connect complex workflows across very different technologies and infrastructures.

If you are deciding between keeping, modernising or replacing a Jenkins setup, or need a pipeline that runs inside your own network, our DevOps services team can help you choose and build it.

Frequently asked questions

Is Jenkins a CI or a CD tool?

Both. Jenkins started as a continuous integration server that builds and tests every change, and with Pipeline it also automates continuous delivery and deployment: packaging, promoting builds between environments, approvals and releases.

Is Jenkins free?

Yes. Jenkins is open source under the MIT licence and free to use, including commercially. The cost is in the servers it runs on and the time needed to maintain the controller, agents and plugins. Some companies also offer commercial support and enterprise distributions.

Is Jenkins becoming obsolete?

No, but its role has changed. Many new projects start with the CI/CD built into GitHub, GitLab or Bitbucket. Jenkins is still actively developed, with weekly and LTS releases, and remains common where teams need self-hosting, complex integrations or long-established pipelines.

What are the alternatives to Jenkins?

The most common are GitHub Actions, GitLab CI/CD and Bitbucket Pipelines, which are built into their code platforms. Hosted CI services and cloud providers' own pipeline services are other options. The right choice usually depends on where your code lives and whether you need to self-host.

Is Jenkins easy to learn?

Getting a first pipeline running is quick. Running Jenkins well takes longer: Groovy-based pipelines, shared libraries, plugin management, agent scaling and security hardening are where most of the learning curve sits.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.