0
0
Jenkinsdevops~20 mins

Plugin manager usage in Jenkins - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Jenkins Plugin Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Jenkins CLI: List Installed Plugins Output
What is the output of the following Jenkins CLI command when listing installed plugins?

java -jar jenkins-cli.jar -s http://localhost:8080/ list-plugins
Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080/ list-plugins
A
git 4.15.1 installed
workflow-aggregator 2.6 installed
mailer 1.34 installed
B
git
workflow-aggregator
mailer
C
git 4.15.1
workflow-aggregator 2.6
mailer 1.34
D
git 4.15.1 enabled
workflow-aggregator 2.6 enabled
mailer 1.34 enabled
Attempts:
2 left
💡 Hint
The command shows plugin names with versions and their status as 'installed'.
Configuration
intermediate
2:00remaining
Jenkins Plugin Installation via Script Console
Which Groovy script snippet correctly installs the 'git' plugin using Jenkins Script Console?
Jenkins
import jenkins.model.*
import hudson.PluginManager
import hudson.model.UpdateCenter

// Script to install plugin
A
def instance = Jenkins.get()
instance.pluginManager.install('git')
B
def instance = Jenkins.get()
instance.updateCenter.getPlugin('git').install()
C
def instance = Jenkins.get()
def uc = instance.updateCenter
uc.getPlugin('git').deploy()
D
def instance = Jenkins.get()
instance.pluginManager.installPlugin('git')
Attempts:
2 left
💡 Hint
Use UpdateCenter to deploy plugins, not PluginManager directly.
Troubleshoot
advanced
2:00remaining
Jenkins Plugin Manager Error Diagnosis
You run the Jenkins CLI command to install a plugin but get this error:

ERROR: java.lang.IllegalArgumentException: No plugin named 'docker' found

What is the most likely cause?
AJenkins server is offline and cannot reach the update center.
BThe user running the CLI lacks permission to install plugins.
CThe CLI jar version is incompatible with Jenkins version.
DThe plugin name 'docker' is incorrect or misspelled.
Attempts:
2 left
💡 Hint
Check the exact plugin ID spelling in the update center.
🔀 Workflow
advanced
3:00remaining
Automating Plugin Updates in Jenkins
Which sequence of Jenkins CLI commands correctly updates all installed plugins to their latest versions?
A3,4,1,2
B3,4,2,1
C4,3,2,1
D3,2,4,1
Attempts:
2 left
💡 Hint
List plugins first, then install latest versions, update metadata, and restart safely.
Best Practice
expert
3:00remaining
Recommended Practice for Jenkins Plugin Management
What is the best practice for managing Jenkins plugins in a production environment to ensure stability and security?
AUse scripted automation to install and update plugins after testing in a staging environment.
BManually download plugin .hpi files and upload them to Jenkins without version control.
CDisable plugin updates and never change plugins once Jenkins is running in production.
DInstall plugins directly on production Jenkins via the web UI to get the latest versions immediately.
Attempts:
2 left
💡 Hint
Testing plugin changes before production reduces risk.