Automatic deployment method, device, equipment and medium

A technology for automatic deployment and storage media, applied in the field of equipment and media, devices, and automatic deployment methods, can solve problems such as system throughput rate decline, and achieve the effect of improving release efficiency

Pending Publication Date: 2020-01-24
GUANGTONGTIANXIA NETWORK TECH CO LTD
View PDF11 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome the deficiencies of the prior art, one of the purposes of the present invention is to provide an automatic deployment method, by cleaning up the history records after the operation is completed, to solve the system throughput drop caused by too many history records

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic deployment method, device, equipment and medium
  • Automatic deployment method, device, equipment and medium
  • Automatic deployment method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Embodiment 1 provides an automatic deployment method, which aims to clean up the historical records based on the existing automatic deployment method, and solve the problem of system throughput caused by storing too many historical records by cleaning the historical records. drop problem.

[0048] The automatic deployment method described in the present invention is all built on Jenkins, and Jenkins is an open source software, is a kind of continuous integration tool developed based on Java, has scalability, and can continuously integrate, deliver and deploy software programs. And Jenkins also integrates Git tools and Maven project management tools, which are applicable to Windows or Linux operating system Jenkins, so Jenkins can realize automatic deployment of test codes in different operating systems.

[0049] Please refer to figure 1 As shown, an automatic deployment method includes the following steps:

[0050] S110. Obtain a test code;

[0051] Preferably, pleas...

Embodiment 2

[0085] The second embodiment is carried out on the basis of the first embodiment, which mainly explains and illustrates the cleaning of historical records.

[0086] Every time Jernkins performs automatic deployment, temporary files will be generated. If the temporary files are not cleaned up, Inode (index node) will be exhausted. Inode is used to store basic information of files and directories, including time, file name, user and group Group, etc., so when the Inode is unavailable, it will cause the problem that the folder cannot be created, causing the automatic deployment to fail. In addition to temporary files, every time Jenkins runs, the construction history will be automatically recorded, as well as the result files (i.e. executable files) generated by each automatic deployment, such as War packages, Jar packages, Zip packages, etc. These result files will take up a lot of time Disk space, resulting in insufficient memory, storing too many result files and build history...

Embodiment 3

[0091] Embodiment 3 discloses a device corresponding to the automatic deployment method of the above embodiment, which is the virtual device structure of the above embodiment, please refer to Figure 5 shown, including:

[0092] Acquiring module 210 for testing code;

[0093] The packaging module 220 is used to call the dependent package of the test code, and package the test code and the dependent package into an executable file;

[0094] The startup module 230 is used to run the executable file to obtain the running result;

[0095] A cleaning module 240, configured to clean up historical records according to preset conditions.

[0096] Preferably, obtaining the test code includes the following steps:

[0097] Use the Git tool to pull the test code from the preset code address;

[0098] The branch of the project that matches the test code in question.

[0099] Preferably, calling the dependent package of the test code, and packaging the test code and the dependent packa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic deployment method, relates to the technical field of automatic release, and the automatic deployment method is used for solving the problems of low manual deployment efficiency and excessive historical records in the prior art, and the method comprises the following steps: obtaining a test code; calling a dependency package of the test code, and packaging the test code and the dependency package into an executable file; running the executable file to obtain a running result; and cleaning the historical record according to a preset condition. The invention further discloses an automatic deployment device, electronic equipment and a computer storage medium. By setting the preset conditions for cleaning the historical records, the system throughput rate reduction caused by excessive storage of the historical records is prevented.

Description

technical field [0001] The present invention relates to the technical field of automatic release, in particular to an automatic deployment method, device, equipment and medium. Background technique [0002] The entire process of software development is environment-specific. From development to testing, every step will be strictly tested. After the test is successful, the software will be deployed to the production environment to provide services for users. After the developer writes the code, he needs to deploy the software program to the test environment, so that the tester can test whether the software program is functioning normally and whether there are program loopholes. When there is a problem in the software program, the developer needs to modify the code first, and then send it to the tester for testing. After the test is successful, the software program is deployed to the production environment. The traditional deployment process is based on a series of steps such ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F8/71
CPCG06F8/65G06F8/71
Inventor 金扬益
Owner GUANGTONGTIANXIA NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products