0
0
Jenkinsdevops~30 mins

Plugin update management in Jenkins - Mini Project: Build & Apply

Choose your learning style9 modes available
Plugin update management
📖 Scenario: You are a Jenkins administrator responsible for managing plugin updates to keep the Jenkins server secure and stable.Plugins add extra features to Jenkins, but they need to be updated regularly to fix bugs and add improvements.
🎯 Goal: Learn how to list installed Jenkins plugins, check for available updates, and apply those updates using Jenkins CLI commands.
📋 What You'll Learn
Use Jenkins CLI commands to list plugins
Check for plugin updates
Update plugins using Jenkins CLI
Verify plugin update status
💡 Why This Matters
🌍 Real World
Jenkins administrators regularly update plugins to keep the CI/CD environment secure and stable.
💼 Career
Knowing how to manage Jenkins plugins is essential for DevOps engineers and system administrators maintaining Jenkins servers.
Progress0 / 4 steps
1
List installed Jenkins plugins
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins to list all installed plugins on the Jenkins server.
Jenkins
Need a hint?

Make sure Jenkins CLI jar file is downloaded and accessible.

Use the exact command with list-plugins option.

2
Check for available plugin updates
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins -v to get verbose details on installed plugins to check which have updates available by reviewing versions.
Jenkins
Need a hint?

The -v flag shows detailed plugin information including versions and status.

3
Update a specific Jenkins plugin
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin <plugin-name> -deploy to update a specific plugin. Replace <plugin-name> with the exact plugin ID you want to update.
Jenkins
Need a hint?

Use the exact plugin ID like git to update that plugin.

The -deploy flag applies the update immediately.

4
Verify plugin update status
Use the Jenkins CLI command java -jar jenkins-cli.jar -s http://localhost:8080 list-plugins | grep git to verify the 'git' plugin version after update.
Jenkins
Need a hint?

Use grep to filter the plugin list for 'git' plugin details.