Jenkins Plugins and Global Tool Configuration: Plugin Manager, Update Safely, JDK, Maven and Node Tools

CI CD Pipelines with Jenkins 30 min min read Updated: Nov 17, 2026 Intermediate
Jenkins Plugins and Global Tool Configuration: Plugin Manager, Update Safely, JDK, Maven and Node Tools
Intermediate Topic 3 of 3

What Plugins Do

Almost every Jenkins feature beyond the core comes from a plugin: source control, pipelines, credentials, Docker, Kubernetes, notifications, reports. This gives great power, but also risk: more plugins mean more updates, more security fixes and more chance of conflict. Install what you need, and keep them current.

Plugin Manager

*Manage Jenkins, Plugins*

TabUse
UpdatesPlugins with new versions. Security fixes are marked
Available pluginsSearch and install new ones
Installed pluginsEnable, disable, uninstall; see dependencies
Advanced settingsProxy, update site URL, upload an .hpi file
  • After installing, some plugins need a restart. Use *Restart Jenkins when no jobs are running*
  • Dependencies are installed automatically, but check the list before you click
  • A plugin marked Deprecated or Adopt This Plugin has no active maintainer: plan to replace it
  • A security warning in the list means a known vulnerability. Update or remove it

A Sensible Starter Plugin List

AreaPlugin (ID)
Pipelinesworkflow-aggregator (Pipeline suite), pipeline-stage-view, pipeline-utility-steps
Source controlgit, github, github-branch-source, gitlab-plugin, bitbucket
Credentialscredentials-binding, ssh-agent, ssh-credentials, plain-credentials
Agents and cloudssh-slaves, kubernetes, docker-workflow, docker-commons
Quality and reportsjunit, warnings-ng, jacoco, sonar, htmlpublisher
Notificationsmailer, slack, email-ext
Security and accessrole-strategy, matrix-auth, ldap, oic-auth (OpenID Connect), saml
Administrationconfiguration-as-code, job-dsl, thinBackup or a file-system backup, timestamper, ws-cleanup, build-timeout, rebuild
Install less, not more: Every plugin you add is something you must patch. Remove plugins you no longer use, and test updates in a copy of Jenkins before production.

Install Plugins From the Command Line (Repeatable)

Keep a list of plugins in a text file and install them with the official tool. This is how Docker images and Configuration as Code setups stay reproducible.

text # plugins.txt workflow-aggregator git github-branch-source credentials-binding ssh-agent docker-workflow kubernetes junit warnings-ng configuration-as-code role-strategy slack:latest
dockerfile FROM jenkins/jenkins:lts-jdk21 COPY plugins.txt /usr/share/jenkins/ref/plugins.txt RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt COPY casc.yaml /var/jenkins_home/casc.yaml ENV CASC_JENKINS_CONFIG=/var/jenkins_home/casc.yaml ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
bash # On a normal install jenkins-plugin-cli --plugins git:latest workflow-aggregator --war /usr/share/java/jenkins.war --plugin-download-directory /var/lib/jenkins/plugins # See the installed list from the API curl -s -u admin:TOKEN 'https://jenkins.example.com/pluginManager/api/json?depth=1' | jq -r '.plugins[] | "\(.shortName):\(.version)"' > installed-plugins.txt

Safe Plugin Update Routine

  1. Read the security advisories and plugin changelogs
  2. Back up JENKINS_HOME (or snapshot the VM or volume)
  3. Update on a test controller that has a copy of your configuration
  4. Update a few plugins at a time, restart, run your key pipelines
  5. Update production in a quiet window and watch the log
  6. If something breaks, roll back: restore the previous .jpi file from plugins/*.bak or restore the backup
bash ls /var/lib/jenkins/plugins/*.bak # Jenkins keeps the previous version when it updates a plugin # Roll back one plugin manually sudo systemctl stop jenkins sudo cp /var/lib/jenkins/plugins/git.jpi.bak /var/lib/jenkins/plugins/git.jpi sudo systemctl start jenkins

Global Tool Configuration

*Manage Jenkins, Tools* lets you define tools once so jobs can ask for them by name. Jenkins can download and install them automatically on agents.

ToolWhat to set
JDKName jdk21, install automatically from a vendor, or set JAVA_HOME on the agent
MavenName maven-3.9, install from Apache automatically
GradleName gradle-8
NodeJS (plugin)Name node-22, with optional global npm packages
GitPath to the git executable on agents
Docker, SonarQube ScannerFrom their plugins
groovy pipeline { agent any tools { jdk 'jdk21' maven 'maven-3.9' nodejs 'node-22' } stages { stage('Versions') { steps { sh 'java -version && mvn -version && node --version' } } } }

Many teams skip auto-install and use Docker agents with the tools already inside the image. That makes builds repeatable and avoids tool drift (next sections).

Practice Tasks

  1. Open the Plugin Manager and list your installed plugins and any with warnings
  2. Create a plugins.txt for your lab and build a custom Jenkins image with it
  3. Configure a JDK and Maven in the global tools and use them in a pipeline
  4. Practise the rollback of one plugin from its .bak file
  5. Remove one plugin you do not need

Conclusion

Plugins give Jenkins its power and its risk. Install only what you need, keep a plugins.txt for repeatable builds, update in a test copy first with a backup, and configure shared tools centrally or use Docker agents with tools baked in.

Quick Summary: plugin manager tabs; starter list with IDs; plugins.txt + jenkins-plugin-cli; safe update routine; rollback .bak; global tools + tools block.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators