Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement plug-in installation and plug-in Import in Jenkins

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how Jenkins implements plug-in installation and plug-in import. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Description

Because my server is a domestic server, can not access google and other foreign websites, Jenkins can only choose to go offline, skip installing plug-ins (if you want to install plug-ins, you can go to http://updates.jenkins-ci.org/download/plugins/ to find the plug-ins you want, download and install. There are also tutorials that can download plug-ins to modify configuration on the Internet. I tried most of the ways and found that plug-ins could not be downloaded, so I decided to back up plug-ins and then import them, so that most of the needed plug-ins can be installed in batches, saving time and effort. This method is suitable for cases where jenkins has just been installed, because the import method will overwrite the original data such as administrators.)

Install the backup plug-in

In this paper, the ThinBackup plug-in is used for plug-in recovery. First, Jenkins needs to install the ThinBackup plug-in first.

The installation steps are as follows:

1. Visit http://updates.jenkins-ci.org/download/plugins/, search by name to find the ThinBackup plug-in, click to enter, this article downloads the 1.10 version of the file. (you can also download: https://download.csdn.net/download/tcy1429920627/12894657 at the link)

two。 Install the plug-in, enter Jenkins, click Manage Jenkins > Manage Plugins > Advanced, go to the location where the plug-in is uploaded, select the plug-in you just downloaded, and install the plug-in.

3. When the installation is complete, click Manage Jenkins and you can see the plug-in at the bottom of the page.

4. Click on the installed plug-in to restore other files (Backup Now is backup Jenkins,Restore is restore backup, Settings is to set backup configuration), we first set the backup configuration.

5. Click Settings, configure the backup settings, and configure the backup settings as shown in the following figure (this will place the backup files in the server root directory / thinbackup folder when the backup is configured)

6. If you have not backed up once, you need to manually create a folder thinbackup in the root directory of the server during recovery, and put the restored files under this folder. First, go to the URL to download the restored files (https://download.csdn.net/download/tcy1429920627/12894732), decompress them after downloading, and upload them to the server root directory thinbackup folder, as shown in the figure.

After the file has been uploaded, it is shown below.

After the backup files are put away, go to the page of the Jenkins backup plug-in (Manage Jenkins > ThinBackup > Restore), select the options in the figure, and click restore backup, as shown in the following figure.

7. When you click finish, restart Jenkins, splice / restart after the initial link to visit the page, visit the page, and click Yes. After the Jenkins restart is complete, log in using (user:admin password:1234). Because the user is overwritten when restoring the backup (this method is only applicable to the restored backup files downloaded above this article)

8. Restart is completed, after logging in, you can change the administrator password, at this time some default plug-ins have been installed, and the language type is also Chinese, easy to operate. This is shown in the following figure.

After the recovery, Jenkins has added a lot of plug-ins, which will not be shown here.

Thank you for reading! This is the end of this article on "how to implement plug-in installation and plug-in import in Jenkins". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report