0
0
Jenkinsdevops~30 mins

Plugin compatibility considerations in Jenkins - Mini Project: Build & Apply

Choose your learning style9 modes available
Plugin Compatibility Considerations in Jenkins
📖 Scenario: You are managing a Jenkins server that runs automated builds and deployments. To extend Jenkins functionality, you want to install plugins. However, plugins must be compatible with your Jenkins version and with each other to avoid errors.
🎯 Goal: Learn how to list installed plugins, check their versions, and verify compatibility with the Jenkins core version.
📋 What You'll Learn
Use Jenkins CLI commands to list installed plugins
Create a variable holding the Jenkins core version
Filter plugins that are incompatible with the Jenkins core version
Print the list of incompatible plugins
💡 Why This Matters
🌍 Real World
Jenkins administrators must ensure plugins are compatible with the Jenkins core to avoid build failures and security issues.
💼 Career
Knowing how to check plugin compatibility is essential for DevOps engineers managing CI/CD pipelines using Jenkins.
Progress0 / 4 steps
1
List Installed Jenkins Plugins
Use the Jenkins CLI command jenkins-cli.jar with list-plugins option and save the output to a variable called plugins_list.
Jenkins
Need a hint?

Use backticks to capture command output in a variable.

2
Set Jenkins Core Version Variable
Create a variable called jenkins_core_version and set it to the exact string 2.387.1 representing your Jenkins core version.
Jenkins
Need a hint?

Assign the version string exactly as shown.

3
Filter Incompatible Plugins
Create a list called incompatible_plugins by filtering plugins_list lines that contain the string incompatible or have a minimum Jenkins version higher than jenkins_core_version. Use a loop with variables plugin and details to process each line.
Jenkins
Need a hint?

Split the plugins_list by new lines and check each line for the word 'incompatible'.

4
Print Incompatible Plugins
Print the incompatible_plugins list to display all plugins that are not compatible with the Jenkins core version.
Jenkins
Need a hint?

Use print(incompatible_plugins) to show the list.