0
0
Jenkinsdevops~10 mins

Plugin manager usage 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 CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1]
Drag options to blanks, or click blank then click option'
Ainstall-plugin
Blist-plugins
Cbuild
Drestart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install-plugin' instead of 'list-plugins'.
Using 'restart' which restarts Jenkins, not listing plugins.
2fill in blank
medium

Complete the command to install the 'git' plugin using Jenkins CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] git
Drag options to blanks, or click blank then click option'
Ainstall-plugin
Blist-plugins
Cuninstall-plugin
Dupdate-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list-plugins' which only lists plugins.
Using 'uninstall-plugin' which removes plugins.
3fill in blank
hard

Fix the error in the command to update all plugins using Jenkins CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1]
Drag options to blanks, or click blank then click option'
Ainstall-plugin --all
Binstall-plugin --upgrade
Cupgrade-plugins
Dupdate-plugins
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install-plugin --all' which is invalid.
Using 'upgrade-plugins' which is not a valid command.
4fill in blank
hard

Fill both blanks to restart Jenkins safely after plugin installation.

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'
Asafe-restart
Brestart
Cinstall-plugin
Dlist-plugins
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'restart' instead of 'safe-restart' which may interrupt jobs.
Reversing the order of commands.
5fill in blank
hard

Fill all three blanks to install multiple plugins and restart Jenkins safely.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] git [2] docker [3] && java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart
Drag options to blanks, or click blank then click option'
Ainstall-plugin
Blist-plugins
C--deploy
D--restart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list-plugins' instead of 'install-plugin'.
Missing the deploy flag to apply plugins before restart.