There are several ways to install Jenkins plugins:
Manage Jenkins > Manage Plugins.Available tab.Install without restart.Example: To install the "Git" plugin, you would search for "Git" in the Available tab and follow the on-screen instructions.
install-plugin <plugin-name>.Example: To install the "Docker" plugin via CLI, you would run jenkins-cli install-plugin docker.
.hpi or .jpi file of the plugin from the Jenkins Plugin website.Manage Jenkins > Manage Plugins > Advanced.Upload Plugin section, upload the downloaded plugin file.Example: If you download the "Kubernetes" plugin, you would navigate to the Advanced tab in the Plugin Manager and upload the .hpi file.
Example: With Ansible, you might write a playbook that installs the "Pipeline" plugin by specifying the plugin name and version.
For cloud-based Jenkins deployments, consider using managed services that offer automated plugin management, such as Tencent Cloud's Cloud Jenkins service, which simplifies the setup and maintenance of Jenkins environments.