📖 Scenario: You are setting up a Jenkins server for your team. To add new features, you need to manage Jenkins plugins using the Plugin Manager.
🎯 Goal: Learn how to list installed plugins, install a new plugin, and verify the installation using Jenkins Plugin Manager commands.
📋 What You'll Learn
Use Jenkins CLI commands to interact with the Plugin Manager
List currently installed plugins
Install a specific plugin by name
Verify the plugin installation
💡 Why This Matters
🌍 Real World
Managing Jenkins plugins is essential for adding new features and integrations to your CI/CD pipelines.
💼 Career
Knowing how to use Jenkins Plugin Manager commands is a key skill for DevOps engineers and system administrators managing Jenkins servers.
Progress0 / 4 steps
1
List installed plugins
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins to list all currently installed plugins.
Jenkins
Hint
This command connects to your Jenkins server and shows all plugins installed.
2
Install a new plugin
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin git to install the git plugin.
Jenkins
Hint
This command installs the git plugin on your Jenkins server.
3
Restart Jenkins to apply changes
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart to safely restart Jenkins and apply the plugin installation.
Jenkins
Hint
Restart Jenkins safely so the new plugin is loaded without interrupting running jobs.
4
Verify the git plugin installation
Run java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins | grep git to check if the git plugin is installed and active.
Jenkins
Hint
This command filters the plugin list to show only the git plugin, confirming it is installed.
Practice
(1/5)
1. What is the primary purpose of the Jenkins Plugin Manager?
easy
A. To monitor Jenkins build logs
B. To add, update, or remove Jenkins plugins easily
C. To create new Jenkins jobs
D. To configure Jenkins system settings
Solution
Step 1: Understand Jenkins Plugin Manager role
The Plugin Manager is designed to handle plugins, which extend Jenkins features.
Step 2: Differentiate from other Jenkins functions
Configuring system settings, creating jobs, and monitoring logs are separate Jenkins tasks, not plugin management.
Final Answer:
To add, update, or remove Jenkins plugins easily -> Option B
Quick Check:
Plugin Manager = Manage plugins [OK]
Hint: Plugin Manager is for plugins only, not jobs or settings [OK]
Common Mistakes:
Confusing plugin management with job creation
Thinking it manages Jenkins system settings
Assuming it monitors build logs
2. Which menu path in Jenkins web interface leads you to the Plugin Manager?
easy
A. Manage Jenkins > Manage Plugins
B. Dashboard > New Item
C. Build History > Configure
D. Manage Jenkins > System Log
Solution
Step 1: Locate Plugin Manager in Jenkins UI
The Plugin Manager is accessed via 'Manage Jenkins' then 'Manage Plugins'.