Key takeaway
- Jenkins continuous integration going into 2027: the LTS 2.580 line, Java 21 and 25 support, Jenkinsfile pipelines, security controls and an adoption plan.
Jenkins continuous integration means a Jenkins controller builds and tests every change as soon as it reaches a shared Git repository, so a broken build is traced to one commit instead of a week of merged work. Jenkins is open source and self-hosted, ships as a self-contained Java application and, according to jenkins.io, is extended by more than 2,300 community plugins. For the wider practice and how CI hands over to delivery, see our guide to the CI/CD pipeline: stages, tools and best practices.
This post is for engineering leaders and architects who run Java builds on Jenkins in 2027. It covers what changed in the release line (Java 17 is no longer supported, Java 21 and 25 are), how a Jenkinsfile pipeline works for a Java project, the security and governance controls to put in place, an adoption sequence, and when another CI service is the better choice.
What is Jenkins continuous integration and why do Java teams still use it?
Continuous integration asks developers to merge small changes into a shared repository often, with each merge built and tested automatically. Before CI, teams merged large batches late, and failures from many commits were hard to separate. With Jenkins, every push triggers a build and test run on a build agent, the result is reported back to the developer and the change that broke the build is obvious.
Jenkins remains common in Java estates because it is itself a Java application, runs on Windows, Linux and macOS, and can be hosted wherever the code and data must stay. The jenkins.io homepage lists its core capabilities:
| Capability | What it means for a Java team |
|---|---|
| Continuous integration and delivery | Start as a CI server for Maven or Gradle builds and grow into a delivery hub for the whole release process |
| Easy installation | A self-contained Java application with packages for Windows, Linux, macOS and other Unix-like systems |
| Easy configuration | A web interface with built-in help and on-the-fly error checks, plus configuration as code through the JCasC plugin |
| Plugins | More than 2,300 community plugins connect Jenkins to source control, build, test, artefact and deployment tools |
| Distributed builds | Work is spread across agents on several machines and platforms to run builds and tests in parallel |
What has changed in Jenkins by 2026?
If your Jenkins estate was set up from a tutorial a few years ago, several assumptions no longer hold. These are the changes that matter most for a CI platform owner, all taken from jenkins.io on 12 November 2026.
| Item | Current status (November 2026) | What it means for you |
|---|---|---|
| LTS line | 2.580.2, released 28 October 2026 (2.580.1 on 30 September 2026) | Production controllers should track this line and its .1, .2 and .3 updates |
| Weekly line | 2.590 | For teams and plugin developers who need new features and fixes quickly |
| Supported Java | Java 21 (first LTS 2.479.1) and Java 25 (first LTS 2.541.1, January 2026) | Run the controller and agents on Java 21 or 25 |
| Java 17 | Unsupported; final LTS 2.541.3 (March 2026), final weekly 2.544 | Upgrade any controller still on Java 17 before moving to a current LTS; an unsupported Java version stops the controller from running |
| Planned end of support | Java 21: September 2027. Java 25: September 2029 | Plan new controllers on Java 25 to avoid a second migration in 2027 |
| Bundled plugins (2.580.1) | Several plugins are no longer bundled, including JUnit, Mailer and Matrix Project, cutting the war file by over 20 MB | Check that plugins your jobs depend on are installed explicitly before upgrading |
| Job definition | The handbook recommends a Jenkinsfile in source control over jobs configured by clicking in the UI | Move freestyle jobs to Pipeline as code |
Which Jenkins release line and Java version should you run?
Jenkins has two release lines. The weekly line ships new features and fixes about every week. The Long-Term Support (LTS) line picks a recent weekly release as a baseline every 12 weeks, then publishes three updates to it with backported bug and security fixes only, each after a release candidate period. The jenkins.io LTS page recommends LTS for users who value stability.
| Choice | When it fits | Watch out for |
|---|---|---|
| LTS line on Java 25 | New or rebuilt production controllers; regulated or shared enterprise CI | Confirm every plugin you rely on supports Java 25 in a staging controller first |
| LTS line on Java 21 | Existing controllers already on Java 21 | Java 21 support is planned to end in September 2027, so schedule the move to 25 |
| Weekly line | Plugin developers, platform teams testing upcoming changes | More frequent upgrades and more change to absorb |
| Anything on Java 17 or older | Not supported | The controller will not run on an unsupported Java version; follow the jenkins.io upgrade guide from 17 to 21 |
How does a Jenkins CI pipeline work for a Java project?
A modern Jenkins CI flow for a Java service has six steps. The developer pushes to Git; a webhook (for GitHub, the trigger labelled "GitHub hook trigger for GITScm polling") tells Jenkins about the change; Jenkins reads the Jenkinsfile from the same repository; the controller schedules the work on an agent with the right JDK; the agent compiles and tests with Maven or Gradle; and Jenkins records test results and notifies the team. With a Multibranch Pipeline, Jenkins creates a pipeline for every branch and pull request that contains a Jenkinsfile.
The handbook describes two syntaxes. Declarative Pipeline is built around a pipeline block and is easier to read and write; Scripted Pipeline is built around node blocks, where stage blocks are optional. For most Java CI, start with Declarative. A minimal example:
pipeline {
agent { label 'linux-jdk21' }
stages {
stage('Build') {
steps { sh 'mvn -B -DskipTests clean package' }
}
stage('Test') {
steps { sh 'mvn -B test' }
post { always { junit 'target/surefire-reports/*.xml' } }
}
}
}
The agent label points at build agents that have a supported JDK, so builds never run on the controller. The junit step needs the JUnit plugin, which Jenkins stopped bundling in 2.580.1, so install it through the plugin manager. To try Jenkins locally, the official Docker image jenkins/jenkins:lts-jdk21 publishes the web interface on port 8080 and the setup wizard at http://localhost:8080; jenkins.io suggests at least 4 GB of RAM and 50 GB of disk for a small team. For more complex stages and shared libraries, see our post on pipeline as code with Jenkins and Apache Groovy.
In our own delivery work, Jenkins is used for continuous integration and test execution pipelines, and for release automation such as a merge-builder job that automates a client's release merge process. The pattern that holds up is the same in each case: keep the job logic in source control, run it on agents and keep the controller small.
How should enterprises govern and secure a Jenkins controller?
A Jenkins controller holds credentials for source control, artefact repositories and production targets, so it is a high-value system. The jenkins.io security handbook sets out the controls below.
| Risk | Control | Source |
|---|---|---|
| Build scripts reaching the controller file system | Set the built-in node to 0 executors and run builds on agents or clouds | Controller isolation guide |
| A compromised agent sending commands to the controller | Keep Agent to Controller access control on; it is always enabled from Jenkins 2.326 | Controller isolation guide |
| Anonymous or over-broad access | No anonymous access; grant users only the permissions they need | Securing Jenkins |
| Credential exposure through folders | Check who can use credentials in Organization Folder and Multibranch Pipeline projects | Securing Jenkins |
| Configuration drift between controllers | Define the controller in YAML with Configuration as Code (JCasC) so it can be rebuilt without UI clicks | JCasC project page |
| Out-of-date Jenkins, plugins or Java | Track the LTS line, test upgrades on a staging controller, retire Java 17 | Download and Java support pages |
Two problems come up repeatedly in our managed service work: keeping Jenkins itself upgraded, and malicious packages reaching the artefact repository that builds pull from. Treat the artefact repository and dependency scanning as part of CI governance, not a separate concern; our DevSecOps pipeline, tools and governance guide covers the controls. When AI agents start triggering builds or approving releases, Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need.
Cost sits mostly in people time: patching the controller, maintaining agents and reviewing plugins. Count that time when comparing Jenkins with a managed service.
How do Jenkins build records help incident response?
Every Jenkins build records which commit was built, by which pipeline, with which test results. That history is the context an on-call engineer needs when an incident starts after a release. One pattern our architects have proposed is to expose recent Jenkins build and deployment runs to AI agents (for example through an MCP server) so an incident agent can check what changed before it suggests a cause. ElixirClaw runs governed AI agents, including incident agents for detection, root cause analysis and remediation, and ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents.
Video: root cause analysis with AI agents that look past the loudest alert to the change behind it (ElixirClaw).
In what order should you adopt or modernise Jenkins CI?
- Inventory controllers, Java versions, jobs and plugins; flag anything on Java 17 or an unsupported Jenkins release.
- Stand up a staging controller on the current LTS with Java 21 or 25, defined with JCasC.
- Move build work off the built-in node onto labelled agents with the JDKs your services need.
- Convert freestyle jobs to Jenkinsfiles, starting with the most active repositories, and use Multibranch Pipelines for branch and pull request builds.
- Install plugins that are no longer bundled (for example JUnit and Mailer) explicitly and record them in configuration.
- Lock down access, credentials and dependency sources, then set an upgrade rhythm that follows the 12-week LTS cycle.
- Extend CI into delivery, as described in building a continuous delivery pipeline with Jenkins.

When is Jenkins not the right choice?
Jenkins is a self-hosted platform, so you own uptime, patching, agent capacity and plugin compatibility. That is worth it when builds must run on premises or in a controlled network, when you need deep customisation, or when a large Jenkins estate already works well. It is less attractive for a small team whose code already lives in a platform with built-in CI. Many enterprises run a mixed estate; one of our retail managed service clients runs both Jenkins and GitHub Actions. If your organisation standardises on Microsoft tooling, compare Jenkins with Microsoft Azure DevOps Pipelines before investing further.
| Situation | Better fit |
|---|---|
| Regulated or on-premises builds, heavy customisation, existing Jenkins skills | Jenkins LTS with agents and JCasC |
| Small team, code in one hosted platform, no wish to run servers | The CI service built into that platform |
| Microsoft-centred estate with Azure Boards and Repos | Azure DevOps Pipelines |
| Large mixed estate | Keep Jenkins where it works, standardise new services on one tool and govern both |
To decide which CI and release decisions your agents should be allowed to make, and the context and policy each depends on, book a Context Workshop. See what happens in the workshop.
What should you plan for in 2027?
Two planned dates on the official Jenkins Java page shape the year ahead.
- September 2027: the Jenkins Java support policy lists planned end of support for Java 21 as September 2027. Controllers and agents still on Java 21 should have a tested move to Java 25 scheduled before then.
- September 2029: the same page lists planned end of support for Java 25, so a new or rebuilt controller started on Java 25 avoids a second migration.
- Java 17: the page lists it as unsupported, with 2.541.3 (March 2026) as the final LTS, so any remaining Java 17 controller needs upgrading before anything else.
Frequently asked questions
What is Jenkins continuous integration?
It is the practice of having a Jenkins controller build and test every change pushed to a shared repository, so integration problems show up within minutes of a commit. Jenkins is an open source, self-hosted automation server; the jenkins.io homepage describes it as able to act as a simple CI server or a continuous delivery hub.
Which Jenkins version should an enterprise run going into 2027?
Most enterprises should run the Long-Term Support line. In November 2026 the jenkins.io download page listed LTS 2.580.2 (released 28 October 2026) and weekly 2.590. A new LTS baseline is chosen every 12 weeks and each baseline gets three updates.
Which Java version does Jenkins need?
Jenkins supports Java 21 and Java 25. Java 17 is no longer supported: its final LTS was 2.541.3 (March 2026) and the 2.555.1 changelog says Java 17 is not supported from that release. Planned end of support is September 2027 for Java 21 and September 2029 for Java 25.
Should we use freestyle jobs or a Jenkinsfile?
Use a Jenkinsfile. The Jenkins handbook recommends defining a Pipeline in a Jenkinsfile committed to source control, which gives a build for every branch and pull request, code review of the pipeline itself, an audit trail and a single source of truth.
How do we keep a Jenkins controller secure?
Set the built-in node to zero executors and run builds on agents, keep anonymous access off, scope credentials tightly, leave Agent to Controller access control on (it is always enabled from Jenkins 2.326) and keep both Jenkins and its plugins on supported versions.
When is Jenkins not the right CI tool?
When a team does not want to run and patch its own controller, agents and plugins, a managed CI service built into its source control or cloud platform is usually simpler. Jenkins fits best where teams need self-hosting, on-premises or regulated builds, or deep customisation through plugins.
Which Jenkins date matters most in 2027?
The Jenkins Java support policy lists planned end of support for Java 21 as September 2027, so controllers and agents still on Java 21 need a tested move to Java 25 before then. Java 25 is listed as supported until September 2029.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE