Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A code continuous integration method and a code continuous delivery method

A continuous integration and continuous delivery technology, applied in the field of software engineering, can solve problems affecting the delivery speed of code and software products, and achieve the effect of improving delivery speed

Inactive Publication Date: 2019-05-10
睿驰达新能源汽车科技(北京)有限公司
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, this code continuous integration method seriously affects the delivery speed of code and software products

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
  • A code continuous integration method and a code continuous delivery method
  • A code continuous integration method and a code continuous delivery method
  • A code continuous integration method and a code continuous delivery method

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0062] see figure 1 , which is a flow chart of a code continuous integration method provided by the embodiment of this application.

[0063] Such as figure 1 As shown, the code continuous integration method provided in this embodiment includes:

[0064] Step 101: Receive the code submitted by the developer.

[0065] The code continuous integration method provided in this embodiment is applied to the Gerrit tool. Gerrit is a code review tool that is open source, easy to install, and easy to use. In this embodiment, a Git module is integrated in Gerrit, and the Git module can be used to manage source codes. The Gerrit tool with built-in Git module can meet the needs of distributed large-scale development, and can effectively save the cost of Git server construction and maintenance.

[0066] For the Git module, when performing code management, it is usually related to two concepts at the code management level, one is the local code warehouse, and the other is the remote code...

no. 2 example

[0098] see figure 2 , which is a flow chart of another code continuous integration method provided by the embodiment of this application.

[0099] Such as figure 2 As shown, the code continuous integration method provided in this embodiment includes:

[0100] Step 201: Receive the code submitted by the developer.

[0101] In this embodiment, the implementation manner of step 201 is the same as that of step 101 in the foregoing embodiments. For the implementation manner of step 201, reference may be made to the foregoing embodiments, and details are not repeated here.

[0102] Step 202: Input the code into a compiling tool, and the code passes through the compiling tool, the static scanning tool and the unit testing tool successively.

[0103] In this embodiment, the continuous code integration must go through at least three steps. The first step is compilation, which is executed by the compilation tool. The purpose of compilation is to check the logic of the code; the sec...

no. 3 example

[0146] see image 3 , which is a flow chart of a code continuous delivery method provided by the embodiment of this application.

[0147] Such as image 3 As shown, the code continuous delivery method provided in this embodiment includes:

[0148] Step 301: Merge the codes, and generate a product of the code construction after the codes are merged.

[0149] According to the previous description, after the code written by the developer goes through the continuous integration process, the code that can be used for continuous delivery needs to be merged into the remote code warehouse, and then it can be integrated with the code written by other developers, and finally completed Code development tasks.

[0150] In this embodiment, the code referred to in step 301 is specifically the code that can be used for continuous delivery determined according to the foregoing embodiments.

[0151] For example, using the method of the second embodiment, none of the first execution result,...

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 a code continuous integration method and a code continuous delivery method. The code continuous integration method is applied to a code review tool Gerrand, after receiving codes submitted by developers, inputting the codes into a compiling tool, and enabling the codes to pass through the compiling tool and a static scanning tool in sequence; receiving a first execution result and a second execution result of the compiling tool and the static scanning tool on the code; and determining whether the code can be used for continuous delivery according to the first executionresult and the second execution result. Developers can obtain the first execution result and the second execution result through the Gerris platform, so that the problem of codes can be obtained in real time in the continuous integration process of the codes, and the problem does not need to be confirmed after the codes are merged into a remote code warehouse. Compared with the prior art, the method has the advantages that problems found in the code continuous integration process can be exposed in advance, so that developers can correct codes in time, and the delivery speed of the codes and software products is effectively increased.

Description

technical field [0001] This application relates to the technical field of software engineering, in particular to a code continuous integration method and a code continuous delivery method. Background technique [0002] Continuous code integration is a software development practice. Members of a software development team often need to integrate their code writing work, and usually each member integrates at least once a day, which means that integration may occur multiple times a day. Every time the code is integrated, the code is verified through automated construction, including: compilation, release, automated testing and other processes. The purpose of continuous integration is to find code integration errors as early as possible and avoid or reduce code integration problems. [0003] Continuous code delivery is a software engineering method that allows software products to be produced in a short period of time to ensure that the software can be stable and continuously m...

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
IPC IPC(8): G06F8/41
Inventor 王倩男
Owner 睿驰达新能源汽车科技(北京)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products