Detailed explanation of CICD (15) - Jenkins plugin installation failure solution

Today, I will continue to introduce the relevant knowledge of Linux operation and maintenance. The main content of this article is to solve the failure of Jenkins plug-in installation.

1. Background

Today, when I installed the Git and Gitlab plugins on Jenkins, there was a problem with the installation of the plugins, and the results are as follows:
insert image description here

After my research and experiments, I have a certain indirection on the reasons and solutions for the failure of the Jenkins plug-in installation. The ideas are as follows, and I hope to be helpful to future friends.

2. Network error resolution

The installation of the Jenkins plugin fails. Sometimes it is caused by a network error and the plugin cannot be downloaded. At this time, the error message is as follows:
insert image description here
Based on this situation, we have three solutions. One is to re-replace the Update source of the Jenkins plugin and change the source. The method can be used to change the plugin source of Jenkins in the advanced settings part of the Jenkins download plugin; the second is the download error caused by the temporary poor quality of the network, then we can try to download and install it again; the third is to directly download and install it locally according to the URL Download the plug-in file, and then select the local upload installation in the advanced settings to solve.

Third, rely on error resolution

In addition, there are some errors, which are caused by the plugin's dependency file not being installed. The typical error message when this error occurs is as follows:
insert image description here
For this error, the plugin itself has been downloaded, but because of the lack of dependencies environment, and the installation cannot be performed normally. To deal with this kind of error, we need to install the missing plug-ins according to the prompts, and the problem can be solved!

Fourth, version error resolution

In addition, there are some errors, which are caused by the fact that some plugins are installed but the version is too low. A prominent error message is as follows:
insert image description here
insert image description here
Based on this situation, we can go to the Updates panel to update the required plugins. After the update, it is as follows (You can ignore the red circle in the picture below):
insert image description here
When this happens, our plug-in has actually been updated. Just restart the device and it will take effect!
Originality is not easy, please indicate the source for reprinting: https://blog.csdn.net/weixin_40228200

Guess you like

Origin blog.csdn.net/weixin_40228200/article/details/123905642