0
0
Jenkinsdevops~10 mins

Plugin update management in Jenkins - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to list all installed Jenkins plugins using the Jenkins CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1]
Drag options to blanks, or click blank then click option'
Adelete-plugin
Blist-plugins
Cinstall-plugin
Dupdate-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using install-plugin instead of list-plugins
Trying update-plugin to list plugins
2fill in blank
medium

Complete the command to update Jenkins plugins using the CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1]
Drag options to blanks, or click blank then click option'
Alist-plugins
Binstall-plugin --latest
Cupdate-plugins
Dinstall-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using list-plugins to update
Using update-plugins which is not a valid command
3fill in blank
hard

Fix the error in the command to update a specific plugin named 'git'.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin [1]
Drag options to blanks, or click blank then click option'
Agit -upgrade
Bgit --upgrade
Cgit
Dgit --latest
Attempts:
3 left
💡 Hint
Common Mistakes
Adding unnecessary flags like --upgrade
Using single dash '-upgrade'
4fill in blank
hard

Fill both blanks to update plugins and restart Jenkins safely.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] && java -jar jenkins-cli.jar -s http://localhost:8080 [2]
Drag options to blanks, or click blank then click option'
Ainstall-plugin
Bsafe-restart
Crestart
Dlist-plugins
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'restart' instead of 'safe-restart'
Not upgrading plugins before restart
5fill in blank
hard

Fill all three blanks to list plugins, upgrade plugins, and restart Jenkins safely.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] && java -jar jenkins-cli.jar -s http://localhost:8080 [2] && java -jar jenkins-cli.jar -s http://localhost:8080 [3]
Drag options to blanks, or click blank then click option'
Alist-plugins
Binstall-plugin
Csafe-restart
Dcheck-update
Attempts:
3 left
💡 Hint
Common Mistakes
Wrong command order
Using 'restart' instead of 'safe-restart'