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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com