Jenkins: How to manage plugins

Jenkins uses plugins extensively. Most Jenkins features are all implemented as plugins. Jenkins plugins provide features to support building, deploying, and automating any project. Believe it or not, but there are over 1800+ community-contributed Jenkins plugins available. This guide will show you how to manage Jenkins plugins.

Jenkins plugins are Java Archive (JAR) files with either an .hpi or .jpi extension. The jpi plugin gets precedence over the hpi plugin in case both are present.

Want to use the available Jenkins plugins? Then click here.

Managing Plugins

You can administer plugins using the Jenkins Plugin Manager. You can easily navigate to the Jenkins Plugin Manager from Jenkins -> Manage Jenkins -> Manage Plugins. The plugin Plugin Manager will allow you to install, update, delete, enable and disable plugins.

The manage plugins menu option will show a screen similar to this:

Now, let’s dive into a bit more detail for each of these tabs.

Available Plugins

The available tab under the plugin manager lists all the plugins that are available for installation.

Note that anyone can submit plugins to Jenkins, and not all plugins are good. So click on the plugin before you install it and review the issues, install count and release information before you install a plugin.

Installed Plugins

Next, you have the installed tab to see info on installed plugins, disable a plugin, or delete a plugin.

Note that uninstalling a plugin may leave behind some plugin configuration data. You can view and purge all the unwanted data under Manage Old Data in the Manage Jenkins menu.

Advanced Plugin Settings

Then you can see the advanced tab, which allows you to manage the proxy configuration.

You can also set the update URL, which is by default set too:

https://updates.jenkins.io/update-center.json

Finally, you can also manually upload a plugin to Jenkins if you need to.

Update Plugins

The Updates tab lists all the installed plugins for which an update is available. It is always a good practice to update the plugins frequently.

For Docker Users

You can also install Jenkins plugins using the command line:

scudo docker exec -it <containerId> /usr/local/bin/install-plugins.sh <plugins>

Finally, you would then need to restart Jenkins using the following URL:

http://<jenkins-url>:8080/safeRestart

You may also be interested in

About Anto Online

Anto, a seasoned technologist with over two decades of experience, has traversed the tech landscape from Desktop Support Engineer to enterprise application consultant, specializing in AWS serverless technologies. He guides clients in leveraging serverless solutions while passionately exploring cutting-edge cloud concepts beyond his daily work. Anto's dedication to continuous learning, experimentation, and collaboration makes him a true inspiration, igniting others' interest in the transformative power of cloud computing.

View all posts by Anto Online

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.