0
0
Jenkinsdevops~10 mins

Jenkins plugin system concept - Interactive Code Practice

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

Complete the code to install a Jenkins plugin using the CLI.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin [1]
Drag options to blanks, or click blank then click option'
Amaven
Bdocker
Cgit
Dnodejs
Attempts:
3 left
💡 Hint
Common Mistakes
Using a tool name that is not a plugin, like 'docker' without plugin context.
2fill in blank
medium

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
Cremove-plugin
Dupdate-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install-plugin' instead of 'list-plugins'.
3fill in blank
hard

Fix the error in the command to update a Jenkins plugin.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] git
Drag options to blanks, or click blank then click option'
Aupdate-plugin
Bupgrade-plugin
Crefresh-plugin
Dinstall-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade-plugin' which is not a valid Jenkins CLI command.
4fill in blank
hard

Fill both blanks to create a command that installs and then restarts Jenkins safely.

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

Fill all three blanks to create a command that updates a plugin, lists plugins, and then safely restarts Jenkins.

Jenkins
java -jar jenkins-cli.jar -s http://localhost:8080 [1] git && 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'
Aupdate-plugin
Blist-plugins
Csafe-restart
Dinstall-plugin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install-plugin' instead of 'update-plugin' for updating.