0
0
Jenkinsdevops~5 mins

Why plugins extend Jenkins - Why It Works

Choose your learning style9 modes available
Introduction
Jenkins is a tool that helps automate tasks like building and testing software. Plugins add extra features to Jenkins so it can do more things without changing its core.
When you want Jenkins to support new programming languages or tools for your projects
When you need Jenkins to connect with other systems like GitHub or Docker
When you want to add new ways to notify your team about build results
When you want to customize Jenkins with new user interface options or reports
When you want to improve Jenkins security or add new authentication methods
Commands
This command lists all plugins currently installed in Jenkins so you can see what features are available.
Terminal
jenkins-plugin-cli --list
Expected OutputExpected
ace-editor 1.1 git 4.11.3 workflow-aggregator 2.6 mailer 1.34
This command installs the Git plugin to add Git support to Jenkins, allowing it to work with Git repositories.
Terminal
jenkins-plugin-cli --install git
Expected OutputExpected
Installing plugin: git Downloading plugin: git Installed plugin: git
After installing plugins, Jenkins needs to restart to load the new features from the plugins.
Terminal
systemctl restart jenkins
Expected OutputExpected
No output (command runs silently)
Run this again to confirm the new plugin is installed and active.
Terminal
jenkins-plugin-cli --list
Expected OutputExpected
ace-editor 1.1 git 4.11.3 workflow-aggregator 2.6 mailer 1.34
Key Concept

Plugins add new features to Jenkins without changing its core, making Jenkins flexible and customizable.

Common Mistakes
Trying to use a plugin feature before installing the plugin
The feature won't work because the plugin is not present in Jenkins
Always install the required plugin first, then restart Jenkins if needed
Not restarting Jenkins after installing plugins
Jenkins won't load the new plugin features until it restarts
Restart Jenkins after plugin installation to activate the new features
Installing too many unnecessary plugins
It can slow down Jenkins and cause conflicts or security risks
Only install plugins that are needed for your specific tasks
Summary
Plugins let Jenkins do more by adding new features without changing its core.
Use the jenkins-plugin-cli command to install and list plugins.
Restart Jenkins after installing plugins to activate them.