0
0
Jenkinsdevops~30 mins

Jenkins plugin system concept - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Jenkins Plugin System
📖 Scenario: You are setting up a Jenkins server to automate your software builds. Jenkins uses plugins to add extra features like notifications, source control integration, and build tools.To manage plugins, you need to understand how to list installed plugins, add new plugins, and check plugin statuses.
🎯 Goal: Learn how to work with Jenkins plugins by listing installed plugins, adding a new plugin, and verifying the plugin installation status using Jenkins CLI commands.
📋 What You'll Learn
Use Jenkins CLI commands to list installed plugins
Add a plugin using Jenkins CLI
Check the status of a specific plugin
Print the final list of plugins including the newly added one
💡 Why This Matters
🌍 Real World
Jenkins plugins extend Jenkins capabilities to support many tools and workflows in software development.
💼 Career
Knowing how to manage Jenkins plugins is essential for DevOps engineers to customize and maintain CI/CD pipelines.
Progress0 / 4 steps
1
List Installed Jenkins Plugins
Write the Jenkins CLI command to list all installed plugins using java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins and save the output to a file called plugins.txt.
Jenkins
Need a hint?

Use the Jenkins CLI list-plugins command and redirect output to plugins.txt.

2
Add a New Plugin
Write the Jenkins CLI command to install the git plugin using java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin git.
Jenkins
Need a hint?

Use the install-plugin command with the plugin name git.

3
Check Plugin Installation Status
Write the Jenkins CLI command to check the status of the git plugin using java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins | grep git.
Jenkins
Need a hint?

Use list-plugins and filter output with grep git to see the plugin status.

4
Display Final Plugins List
Write the commands to first update plugins.txt with the current list of plugins and then display its contents.
Jenkins
Need a hint?

Update the file first: java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins > plugins.txt, then cat plugins.txt.