Throughout this module you have used, almost without noticing, many features that are not part of the Jenkins core: the Git option in Source Code Management, the build timeout, workspace cleanup, copying artifacts and even the Pipeline job type itself. All of them are provided by plugins. Jenkins has a relatively small core, and almost all of its power comes from its plugin ecosystem, which is both its greatest strength and a frequent source of problems when it is not managed with care. In this lesson you will learn exactly what a plugin is and how it fits into Jenkins, walk through the plugin manager tab by tab, learn to evaluate a plugin before installing it and complete the TecnoShop installation with Timestamper, Pipeline Graph View, Workspace Cleanup and Copy Artifact. You will finish with an overview of the plugins you will use in the rest of the course and the risks of piling up too many.

What a Plugin Is

A plugin is a package of Java code that is loaded into the Jenkins controller and adds functionality to it. So that plugins can be integrated without modifying the core, Jenkins defines extension points: interfaces that represent "things that can be added". A plugin implements one or more of these points, and Jenkins discovers them at startup.

You have already seen this in the interface without realizing it:

Extension point Where it appears in the interface Plugin that implements it (example)
Source control system (SCM) Source Code Management options Git → Git option
Build environment (build wrapper) Environment checkboxes Build Timeout → Terminate a build if it's stuck
Build step (builder) Add build step Copy Artifact → Copy artifacts from another project
Post-build action (publisher) Add post-build action Workspace Cleanup → Delete workspace when build is done
Item type New Item Pipeline → Pipeline type
Pipeline step Steps available in a script Git → git step
View column Add column in a view Several plugins add columns

This architecture explains why the interfaces of two Jenkins installations can look so different: it depends on which plugins each one has.

Remember what you saw in the architecture lesson: plugins run inside the controller, share its memory and have access to its data. Each plugin adds capabilities, but also resource consumption and attack surface.

Where Plugins Live: .hpi and .jpi Files

A plugin is distributed as an .hpi file (Hudson Plugin Interface, a name inherited from the Hudson days). It is a compressed archive, like a .jar, that contains the Java classes, the interface pages and a manifest with its name, version and dependencies.

When it is installed, Jenkins stores it in JENKINS_HOME/plugins/ with the .jpi extension (Jenkins Plugin Interface) and unpacks it into a directory with the same name. Check it:

docker exec jenkins-controller sh -c 'ls /var/jenkins_home/plugins | grep "\.jpi$" | head -20'
docker exec jenkins-controller sh -c 'ls /var/jenkins_home/plugins/*.jpi | wc -l'
  • The first command lists the first 20 .jpi files (grep "\.jpi$" keeps those ending in .jpi; head -20 truncates the output).
  • The second counts how many plugins you have installed. With the suggested plugins, plus the ones you have added in this module, it is normal to have well over 50: many arrived as dependencies of others.

Each plugin has a short, stable ID (for example, git, timestamper or ws-cleanup), distinct from its display name (Git, Timestamper, Workspace Cleanup). The ID is what is used in configuration files and command-line tools.

Dependencies Between Plugins

Plugins build on one another. For example, the Git plugin depends on, among others, Git client (which runs the Git commands), Credentials (for authentication) and SCM API. Those dependencies may in turn have their own dependencies: these are transitive dependencies.

flowchart TD
    G["Git"] --> GC["Git client"]
    G --> CR["Credentials"]
    G --> SA["SCM API"]
    GC --> CR
    CR --> ST["Structs"]
    WS["Workspace Cleanup"] --> RM["Resource Disposer"]

What you need to know:

  • When you install a plugin, Jenkins automatically installs all of its required dependencies.
  • There are also optional dependencies: the plugin works without them, but enables additional features if they are present.
  • You cannot uninstall or disable a plugin that other active plugins depend on; Jenkins prevents it and tells you which ones depend on it.
  • Some features that used to be part of the core were split out into plugins over time (for example, JUnit or Mailer). That is why Jenkins always installs them: they are known as detached plugins.

Manage Jenkins → Plugins, Tab by Tab

Open Manage Jenkins → Plugins. The manager has four tabs in the side menu.

Updates

Lists the installed plugins that have a newer version available. For each one it shows the installed version, the new one and, often, compatibility or security warnings. You can select the ones you want and click Update. The Check now button forces Jenkins to download the latest information from the update center.

The update strategy (when to update, how to test first, how to roll back) is an administration topic you will cover in Upgrading Jenkins and Maintaining Plugins. For now, just take a look at this tab.

Available Plugins

The catalog of plugins you can install. It has a search box that filters by name, ID and description. Each result shows its name, version, categories, a short description and the date it was last released. Check the boxes for the ones you want and click Install.

Installed Plugins

Every installed plugin, with:

  • A search box for finding a specific one.
  • A toggle to enable or disable it.
  • A button to uninstall it.
  • Its version and links to its documentation.

If you hover over a disabled toggle or button, Jenkins tells you which other plugins depend on it.

Advanced Settings

Less common settings, which in this course you only need to be aware of:

Option What it is for
Deploy Plugin Upload an .hpi file from your machine (or provide its URL) to install it manually. Useful for internal plugins or for installations without Internet access
Update Site The URL of the update center from which Jenkins downloads the catalog. By default, https://updates.jenkins.io/update-center.json. Companies with isolated networks replace it with an internal mirror
Proxy In some versions, this is where you configure the HTTP proxy for reaching the Internet

Be careful with Deploy Plugin: an .hpi file is code that will run with full permissions inside the controller. Only upload files from a known, verified source.

Installing Plugins: With and Without a Restart

When you click Install, Jenkins shows a progress page with the status of each plugin and its dependencies (Pending, Installing, Success). At the end there is an important checkbox:

[ ] Restart Jenkins when installation is complete and no jobs are running
  • Many plugins are loaded dynamically: they work immediately, without a restart.
  • Others, and all updates to plugins that are already loaded, only take effect after a restart. In that case, Jenkins shows a notice saying that a restart is pending.
  • If you check the box, Jenkins will wait for running builds to finish and then restart on its own.

Ways to restart Jenkins:

Method What it does When to use it
The Restart Jenkins when installation is complete and no jobs are running checkbox Restarts once the installation is done, when no builds are running After installing or updating plugins
http://localhost:8080/safeRestart Stops starting new builds, waits for the current ones to finish and restarts A planned restart without cutting work short
http://localhost:8080/restart Restarts immediately (asks for confirmation) When nothing is running or it is urgent
docker compose restart jenkins-controller Restarts the entire container If the interface is not responding

The /safeRestart and /restart URLs show a confirmation page; remember that only an administrator can use them. In general, prefer /safeRestart: an abrupt restart interrupts running Freestyle builds and, as you saw in the previous lesson, also any sh steps running on the built-in node.

Evaluating a Plugin Before Installing It

The catalog contains more than 1,800 plugins, and they are not all equally well built or maintained. Before installing a new one, check its page on plugins.jenkins.io (in the plugin manager, the plugin's name links to it). There you will find its number of installations, the date of its latest release, the minimum Jenkins version it requires, its maintainers, its dependencies, its documentation and, if any, security or abandonment warnings.

Use these criteria:

Criterion Where to look Good sign Red flag
Installations Installation chart Tens of thousands and stable or growing Very few, or in steady decline
Latest release Release date Releases within the last year Years without a release
Maintainers Maintainers section One or more active maintainers None
Adoption Notice in the header No notices This plugin is up for adoption: nobody maintains it
Security Security warning on the page No open vulnerabilities Published vulnerabilities that have not been fixed
Obsolescence Label or notice No notices Marked as deprecated or with a recommended alternative
Compatibility Minimum required Jenkins version Compatible with your LTS Requires a weekly release newer than your LTS
Dependencies Dependencies tab Few and well known Pulls in many plugins you do not use
Documentation Documentation tab Clear and up to date Missing or outdated

And before all that, ask yourself one question: do I really need a plugin? Many tasks can be handled with an sh step that calls a command-line tool. A versioned script in the repository is easier to maintain than yet another plugin on the controller.

TecnoShop Practice: This Module's Plugins

Laura is going to make sure the plugins the module has mentioned along the way are installed and configured. Several of them are part of the suggested plugins you installed with the setup wizard, so the first step is to check whether you already have them.

Step 1: Check What Is Installed

In Installed plugins, search for each one:

Plugin ID Do you expect it to be installed?
Timestamper timestamper Yes, it comes with the suggested plugins
Workspace Cleanup ws-cleanup Yes, it comes with the suggested plugins
Copy Artifact copyartifact Yes, you installed it in 02-04
Pipeline Graph View pipeline-graph-view It depends on the version you installed Jenkins with

Step 2: Install Whatever Is Missing

For each plugin that does not appear in Installed plugins:

  1. Go to Available plugins and search for it by name.
  2. Before selecting it, open its page on plugins.jenkins.io and go over the criteria in the previous table.
  3. Select it and click Install.
  4. Check on the progress page that every item ends in Success, and note which dependencies were installed along with it.
  5. If the page says a restart is needed, use http://localhost:8080/safeRestart.

Step 3: Enable Timestamper in orders-api-build

In Creating and Running Jobs you left this option for later. Now:

  1. Configure in orders-api-build → Environment section.
  2. Check Add timestamps to the Console Output.
  3. Save and start a build with Build with Parameters (default values).

The console will show the time at the beginning of each line:

11:58:02  Started by user Laura Martin
11:58:02  Running as SYSTEM
11:58:02  Building in workspace /var/jenkins_home/workspace/orders-api-build
...
11:58:05  + ./mvnw -B verify
11:58:06  [INFO] Scanning for projects...
...
11:58:21  [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
...
11:58:24  Finished: SUCCESS

The console's side menu also gains a Timestamps block that lets you choose the format: system time, time in your browser's time zone, elapsed time since the start of the build, or none. Elapsed time is especially useful for pinpointing the slow part of a build.

In pipelines, timestamps are enabled with the options { timestamps() } option inside the script, or globally for all pipelines in the plugin's configuration under Manage Jenkins → System. You will study pipeline options in Pipeline Syntax: Sections and Directives.

Step 4: View orders-api-pipeline with Pipeline Graph View

Open orders-api-pipeline and start a build. With Pipeline Graph View installed:

  • The build page's side menu shows a link to the pipeline graph (Pipeline Overview or Pipeline Graph, depending on the plugin version).
  • The graph shows the Checkout → Build → Tests stages as connected nodes, with their status (green, red, running) and their duration.
  • Clicking a stage shows its steps and the log of each one, without having to scroll through the whole console.
  • Recent versions also show a graphical summary of the stages of the latest builds on the job page.

Repeat the experiment from exercise 1 of the previous lesson (breaking a test) and look at the graph: the Tests stage turns red and, when you select it, you see Maven's output with the failure right away. When you add parallel stages in module 4, the graph will show them as branches, something the classic Stage View represents less well. That is why it is the recommended option today, as you saw in the discussion of Blue Ocean in Jenkins Dashboard Overview.

Step 5: Review Workspace Cleanup and Copy Artifact

Both are already in use:

  • Workspace Cleanup provides Delete workspace before build starts, which orders-api-smoke uses, and Delete workspace when build is done. In pipelines it provides the cleanWs() step, which you will use in module 3.
  • Copy Artifact provides the Copy artifacts from another project step in orders-api-smoke and the Permission to Copy Artifact option in orders-api-build.

To find out what a plugin provides, you can search for its name in Installed plugins and follow the link to its documentation.

The Course's Essential Plugins

This table is your plugin map for the rest of the course. You already have many of them; the rest will be installed in the lesson indicated.

Plugin ID What it is for Lesson
Git git Fetching code from Git repositories 01-05, 06-01
Pipeline workflow-aggregator The set of plugins that provides pipelines 02-05, module 3
Credentials credentials Credential store 04-04
Credentials Binding credentials-binding Using credentials in builds, with masking 04-04
Build Timeout build-timeout Aborting hung builds 02-02
Timestamper timestamper Timestamps in the console This lesson
Workspace Cleanup ws-cleanup Deleting the workspace 02-04
Copy Artifact copyartifact Copying artifacts between jobs 02-04
Pipeline Graph View pipeline-graph-view Graphical visualization of pipelines This lesson
GitHub Branch Source github-branch-source Multibranch and GitHub organizations 04-05, 06-01
SSH Build Agents ssh-slaves Connecting agents over SSH 05-01
Matrix Authorization Strategy matrix-auth Fine-grained permissions per user and group 05-02
JUnit junit Publishing test results 06-03
SonarQube Scanner sonar Quality analysis with SonarQube 06-04
Email Extension email-ext Configurable email notifications 06-07
Slack Notification slack Slack notifications 06-07
Docker Pipeline docker-workflow Using Docker containers from pipelines 08-01
Kubernetes kubernetes Agents in Kubernetes pods 08-02
Configuration as Code configuration-as-code Configuring Jenkins with YAML files 08-03
Job DSL job-dsl Creating jobs through code 08-03

Disabling vs. Uninstalling

If a plugin is causing you problems or you no longer use it, you have two options in Installed plugins:

Disable Uninstall
What it does The plugin is not loaded, but its files remain on disk Removes the plugin from JENKINS_HOME/plugins
How it is marked on disk A <id>.jpi.disabled file next to the plugin The .jpi file disappears
Requires a restart Yes Yes
Rolling back Immediate: enable and restart Reinstall it
Configuration it used Kept May be left behind as unrecognized "old data"
Typical use Diagnosing whether a plugin is causing a problem; cautious retirement Final cleanup

The recommended practice is to disable first, check for a while that nothing breaks, and uninstall afterward. If jobs were using options from a plugin that is no longer there, Jenkins will show a warning about data it cannot interpret in Manage Jenkins → Manage Old Data, which you will see in 05-04.

Security Warnings

Plugins are the main source of vulnerabilities in a Jenkins installation. The Jenkins project publishes security advisories when a vulnerability is discovered, and your installation learns about them through the update center:

  • A warning such as Warnings have been published for the following currently installed components appears in the header and in Manage Jenkins, naming the affected plugin and linking to the description of the vulnerability.
  • In the Updates tab, versions that fix vulnerabilities are prominently flagged.
  • In Available plugins, plugins with unfixed vulnerabilities show a warning before you install them.

When you see a security warning:

  1. Read the description: what the vulnerability allows and under what conditions.
  2. If a fixed version exists, schedule the update as soon as possible.
  3. If not, consider disabling the plugin or mitigating the risk as the advisory recommends.

Do not dismiss warnings without analyzing them. Handling them is part of Jenkins security, which you will cover in Configuring Security.

Reproducible Installation: jenkins-plugin-cli and plugins.txt

Installing plugins by clicking works, but it has the same problem as Freestyle jobs: nothing is recorded and it is not reproducible. If Laura had to set up a second, identical Jenkins tomorrow, she would have to remember which plugins she installed and in which versions.

The alternative is to declare the plugins in a text file, usually called plugins.txt, with one plugin per line:

git
workflow-aggregator
timestamper
ws-cleanup
build-timeout
copyartifact
pipeline-graph-view
credentials-binding
  • Each line is the plugin's ID.
  • You can pin a version with id:version (for example, timestamper:<version>); without a version, the latest compatible one is installed.
  • There is no need to list dependencies: they are resolved automatically.

The official Jenkins image includes the jenkins-plugin-cli tool, which installs the plugins in that file when you build your own image:

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
  • FROM ...: starts from the same image your docker-compose.yml uses.
  • COPY ...: copies the list of plugins into the image.
  • RUN jenkins-plugin-cli --plugin-file ...: downloads the plugins and their dependencies while the image is being built.

Do not change your environment now: your docker-compose.yml still uses the unmodified official image. This approach is developed further in Upgrading Jenkins and Maintaining Plugins, where you will pin versions and test upgrades, and in Jenkins as Code, where it is combined with Configuration as Code to describe an entire Jenkins instance in versioned files.

The Risks of Having Too Many Plugins

It is tempting to install a plugin for every little need. Over time, that comes at a price:

Risk Why it happens
More memory and slower startups Every plugin is loaded into the controller
Larger attack surface Each plugin is code with full access to the controller and may have vulnerabilities
Harder upgrades More combinations of versions that may be incompatible with each other or with the new LTS
Abandoned plugins An unmaintained plugin can block a Jenkins upgrade or be left with an unfixed vulnerability
Duplicate functionality Several plugins for the same thing confuse users and complicate support
Cluttered interface Every plugin adds options to forms and menus

Best practices:

  • Install only what you are going to use, and evaluate each plugin against the criteria in this lesson.
  • Prefer solutions based on command-line tools in sh steps when they are just as simple.
  • Periodically review the list of installed plugins and retire the ones nobody uses (disable first, uninstall afterward).
  • Keep the list of plugins in a versioned plugins.txt.

Common Mistakes and Tips

  • Not finding a plugin in Available plugins: it may already be installed. Look for it in Installed plugins.
  • Installing a plugin and not seeing its options: it may require a restart, or its options may appear somewhere other than where you expect (for example, in Manage Jenkins → System rather than in the job). Check its documentation.
  • Restarting with /restart while builds are running: you interrupt them. Use /safeRestart.
  • Uninstalling a plugin that jobs were using: the options disappear from their configuration. Disable it first and check.
  • Installing abandoned plugins or plugins with vulnerabilities: always review a plugin's page before installing it.
  • Updating every plugin at once on a production Jenkins without testing: this is the classic cause of outages after an upgrade. You will see this in 05-04.
  • Tip: whenever you install a plugin, note its ID and the reason for it in a plugins.txt (even if you are not using it to build images yet). It will save you work in module 5.

Exercises

Exercise 1. Use the criteria table from this lesson to evaluate two plugins: Blue Ocean and Pipeline Graph View. For each one, note the date of its latest release, whether it has adoption, obsolescence or security notices, and its installation trend. Which one would you choose for a new TecnoShop installation, and why? Do not install Blue Ocean.

Exercise 2. In Installed plugins, find the Credentials plugin and try to disable it (without saving any permanent change). What happens? What does that tell you about its role in the installation? Then find Timestamper: can you disable it? What would happen to the option in orders-api-build if you did and then restarted?

Exercise 3. Write a plugins.txt containing the plugins you have used directly in modules 1 and 2 (not their dependencies). For each one, add a comment with the lesson where you used it. Then use docker exec to count how many .jpi files there are in your JENKINS_HOME/plugins and explain the difference from the number of lines in your file.

Solutions

Solution 1. On the Blue Ocean page you will find signs that it is no longer under active development: few recent releases, mostly fixes, and a recommendation to use alternatives for new installations; it also pulls in a large number of dependencies. Pipeline Graph View shows frequent releases, active maintainers and a growing installation trend. For a new installation, the choice is Pipeline Graph View: it is maintained, integrates with the classic interface, has fewer dependencies and is the option the community recommends. The specific figures (dates, installations) will vary depending on when you do the exercise; what matters is that your decision is based on them and not on screenshots from old tutorials.

Solution 2. The Credentials toggle is grayed out: you cannot disable it because many plugins depend on it (Git, Credentials Binding and SSH Build Agents, among others), and Jenkins tells you so when you hover over it. It is a central piece of the installation. Timestamper, on the other hand, can be disabled, because normally no other plugin depends on it. If you disabled it and restarted, the Add timestamps to the Console Output option would disappear from orders-api-build; Jenkins would warn about configuration data it cannot interpret, and builds would run without timestamps. If you enabled it again and restarted, the option would come back with its configuration, because disabling does not delete anything. Do not disable it: you will keep using it.

Solution 3. One possible solution (lines starting with # are comments):

# Checkout of orders-api (01-05)
git
# Pipeline job type (02-05)
workflow-aggregator
# Folders (02-02)
cloudbees-folder
# Build timeout (02-02)
build-timeout
# Timestamps in the console (02-06)
timestamper
# Workspace cleanup (02-04)
ws-cleanup
# Copying the jar to orders-api-smoke (02-04)
copyartifact
# Visualizing orders-api-pipeline (02-06)
pipeline-graph-view

To count the installed plugins:

docker exec jenkins-controller sh -c 'ls /var/jenkins_home/plugins/*.jpi | wc -l'

The number will be far higher than the 8 lines in the file, for two reasons: the transitive dependencies each plugin pulls in (for example, workflow-aggregator alone installs dozens of plugins) and the wizard's suggested plugins that you have not used directly (LDAP, PAM Authentication, Gradle…). A well-written plugins.txt lists only what you explicitly need and lets the tool resolve the rest.

Conclusion

You now understand that almost everything you do in Jenkins depends on plugins: .hpi packages that are installed as .jpi files in JENKINS_HOME/plugins, implement extension points of the core and pull in transitive dependencies. You know the plugin manager tab by tab, when a restart is needed and why to prefer /safeRestart, how to evaluate a plugin on plugins.jenkins.io before installing it, the difference between disabling and uninstalling, how to respond to a security warning and why it pays to declare plugins in a plugins.txt instead of piling them up one click at a time. Your installation now has Timestamper enabled in orders-api-build, Pipeline Graph View for visualizing orders-api-pipeline, Workspace Cleanup and Copy Artifact. This wraps up the module on the basics: you know how to find your way around Jenkins, create and chain jobs, parameterize and schedule them, and manage their workspaces, artifacts and history, and you have made the leap to pipelines. But the orders-api-pipeline script still lives in a text box in the interface, unversioned and unreviewed. In the next module you will move it into the repository alongside the code, starting with Pipeline as Code.

© Copyright 2026. All rights reserved