Installation and uninstallation of jenkins plug-in
Description
Most of the functions of Jenkins are implemented by plug-ins, so you must be aware of the installation and uninstallation of jenkins plug-ins.
Configure the plug-in agent
Jenkins often fails to install plug-ins, so you can solve this problem by configuring the jenkins agent. As follows:
System Administration → plug-in Management:
Advanced → proxy settings:
In the screenshot above, we only need to enter the proxy server address, port, user name and password to complete the configuration of the jenkins plug-in agent.
Second, install plug-ins
The installation of the Jenkins plug-in can be divided into automatic installation and manual installation, which are described below.
2.1 automatically install plug-ins
Automatically install plug-ins, we only need to select the plug-ins that need to be installed in jenkins's web plug-in management, and jenkins will automatically download and install them from its official repository. Take the installation of Email Extension Plugin plug-ins as an example. The installation steps of other plug-ins are similar, as follows:
Optional plug-in-select "Email Extension Plugin plug-in" plug-in-install directly
At this point, the Email Extension Plugin plug-in is installed, which can be seen in the installed plug-in.
2.2 manually install the plug-in
If jenkins cannot connect to the public network, to install the jenkins plug-in, you can only install it manually. Here we take the manual installation of the git plug-in as an example.
First, we need to find the source package of the git plug-in, as follows:
Http://mirror.xmission.com/jenkins/plugins/git/3.2.0/
After downloading the Git plug-in, we log in to the plug-in management page of jenkins and install it manually, as follows:
Advanced → upload plug-in → browsing → upload
The git plug-in installation is complete, which can be seen in the installed list.
List of jenkins plug-in addresses that can be downloaded faster:
Http://mirror.xmission.com/jenkins/plugins/
Https://updates.jenkins-ci.org/download/plugins/
Http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/plugins/
Http://ftp.tsukuba.wide.ad.jp/software/jenkins/plugins/
III. Uninstall the plug-in
There are two ways to uninstall the Jenkins plug-in: the first is to uninstall through the web page, and the second is to uninstall the plug-in by manually deleting the relevant files. The following are described separately.
3.1 Uninstall the plug-in through web
Uninstall the jenkins plug-in through the web page. Let's take the git plug-in as an example, as follows:
Installed-git plugin- uninstall
For the uninstall of the plug-in to take effect immediately, we need to restart the jenkins service. You can restart jenkins through the web page, as follows:
Http://192.168.10.78:8080/restart
Or restart the jenkins service
Service Jenkins restart
Except for the restart command in url above, other commands can be queried as follows:
System Administration-Jenkins CLI (jenkins Command Line)
Http://192.168.10.78:8080/cli/
3.2 uninstall plug-ins manually
Install jenkins in yum mode. The default home directory is / var/lib/jenkins/.
Cd / var/lib/jenkins/plugins/
Rm-fr git
Service jenkins restart