Command disable-plugin
java -jar jenkins-cli.jar -s http://192.168.0.70:8899/jenkins/ -webSocket disable-plugin plugin1 plugin2 plugin3 ... [-quiet (-q)] [-restart (-r)] [-strategy (-s) strategy]
Disable one or more installed plugins.
Disable the plugins with the given short names. You can define how to proceed with the dependent plugins and if a restart after should be done. You can also set the quiet mode to avoid extra info in the console.
plugin1 plugin2 plugin3 : Plugins to be disabled.
-quiet (-q) : Be quiet, print only the error messages (default:
false)
-restart (-r) : Restart Jenkins after disabling plugins. (default:
false)
-strategy (-s) strategy : How to process the dependent plugins.
- none: if a mandatory dependent plugin exists and
it is enabled, the plugin cannot be disabled
(default value).
- mandatory: all mandatory dependent plugins are
also disabled, optional dependent plugins remain
enabled.
- all: all dependent plugins are also disabled, no
matter if its dependency is optional or mandatory.
(default: none)