CN106648823A - Code release method and apparatus - Google Patents

Code release method and apparatus Download PDF

Info

Publication number
CN106648823A
CN106648823A CN201611260960.7A CN201611260960A CN106648823A CN 106648823 A CN106648823 A CN 106648823A CN 201611260960 A CN201611260960 A CN 201611260960A CN 106648823 A CN106648823 A CN 106648823A
Authority
CN
China
Prior art keywords
code
application product
personalized function
review
numbering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611260960.7A
Other languages
Chinese (zh)
Other versions
CN106648823B (en
Inventor
宋杨
刘德启
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN201611260960.7A priority Critical patent/CN106648823B/en
Publication of CN106648823A publication Critical patent/CN106648823A/en
Application granted granted Critical
Publication of CN106648823B publication Critical patent/CN106648823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Abstract

The invention discloses a code release method and apparatus, relates to the technical field of data processing, and solves the problem that a large amount of Geriit server resources are occupied in an existing code release process. The method comprises the steps of obtaining a code review number of an application product personalized function code, wherein the application product personalized function code is a modification code of performing modification for a universal version code of an application product for a personalized function demand of the application product; obtaining the application product personalized function code corresponding to the code review number from a code review server according to the code review number; performing local integration on the application product personalized function code and the universal version code to obtain an application product code with a personalized function; and compiling and releasing the application product with the personalized function. The code release method and apparatus is applied to the code release process.

Description

The method and device that code is issued
Technical field
The present invention relates to technical field of data processing, more particularly to the method and device that a kind of code is issued.
Background technology
In Android Android project development, code inspection software Gerrit is usually used carries out code administration, by project Code be stored in Gerrit servers, when product is issued using Jenkins issue different editions code, different versions This is distinguished using different version flags (build).The code of the build versions of issue is based entirely on certain of main line code One version.But in the project development process of reality, according to the property requirements of different clients, need the property requirements according to client Modified based on build edition codes, then issue the build versions with monopolizing characteristic to client, or carrying out generation Code test phase needs to change in build versions partial code to verify some special functions, but these characteristics and tests Code revision in journey is not required for the general build versions that product is issued, it is not possible in being integrated into main line code.Can To come individually newly-built code branch individually for the special case situation of above-mentioned characteristic and test, i.e., for each special case situation Newly-built code branch obtains multiple build versions of product, in being then store in Geriit servers, and by Jenkins roots Different build versions are issued according to different clients.But, due to the code base of product development it is very huge, it is typically several Ten G, the individual build versions of various tools that newly-built code branch obtains are required for the memory space of tens G, so meeting Cause substantial amounts of occupancy Geriit server resources.
The content of the invention
In view of the above problems, the present invention provides the method and device that a kind of code is issued, and sends out to solve existing code The problem of substantial amounts of occupancy Geriit server resources can be caused during cloth.
To solve above-mentioned technical problem, in a first aspect, the invention provides a kind of method of code issue, methods described bag Include:
The code review numbering of application product personalized function code is obtained, the application product personalized function code is For the modification generation that the personalized function demand of a certain application product is modified to the general version code of the application product Code;
Answer corresponding with code review numbering is obtained from code inspection server according to code review numbering Use personalization of product function code;
The application product personalized function code and the general version code are carried out local integrated, obtain having The application product code of property function;
To issue after application product code compilation with personalized function.
Second aspect, the invention provides the device that a kind of code is issued, described device includes:
First acquisition unit, the code review for obtaining application product personalized function code is numbered, and the application is produced Product personalized function code is general version generation of the personalized function demand to the application product for a certain application product The modification code that code is modified;
Second acquisition unit, for being obtained from code inspection server and the code according to code review numbering The corresponding application product personalized function code of evaluation numbering;
Integrated unit, for the application product personalized function code locally to be collected with the general version code Into obtaining the application product code with personalized function;
Release unit, for will issue after the application product code compilation with personalized function.
By above-mentioned technical proposal, the method and device that the code that the present invention is provided is issued, for there is individual demand When application product code is issued, only corresponding application product individual character need to be obtained from code inspection server according to different demands Change function code, then carry out itself and the general version code of local application product integrated, rather than obtain general-purpose version The code of the new version after this code and application product personalized function code are integrated, thus it is right in code inspection server In an application product, it is only necessary to store single general version code and independent different application product personalized function generation Code, therefore greatly save the memory space in code inspection server.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the flow chart of the method that a kind of code provided in an embodiment of the present invention is issued;
Fig. 2 shows the flow chart of the method that another kind of code provided in an embodiment of the present invention is issued;
Fig. 3 shows the composition frame chart of the device that a kind of code provided in an embodiment of the present invention is issued;
Fig. 4 shows the composition frame chart of the device that another kind of code provided in an embodiment of the present invention is issued.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
To solve the problems, such as that existing code can cause substantial amounts of occupancy Geriit server resources during issuing, this Inventive embodiments provide a kind of method that code is issued, as shown in figure 1, the method includes:
Firstly the need of explanation is issue of the embodiment of the present invention suitable for any continuation software project, is particularly suited for In code base larger project.Enter the explanation that line code issues flow process by taking Android projects as an example below.
101st, the code review numbering of application product personalized function code is obtained.
It should be noted that code review numbering is the numbering of Code Review, in Android projects, for any The modification code of particular code, all can have in the versatility code of the application product that build version application product codes have determined Corresponding code review numbering.Code review numbering is unique.Application product personalized function code in this step is Modification code to particular code.
In actual application, same application product, be distributed to not to user use when, it may be desirable to for use The individual demand at family is modified to particular code in the versatility code of application product, therefore is being distributed to user's application product When, need to merge versatility code or integrated with modification code.Therefore code, i.e. application product are changed firstly the need of obtaining Personalized function code.And what personalization of product function code was distinguished by code review numbering, therefore produce application is obtained Also need to obtain the code review numbering of application product personalized function code before product personalized function code.
The code review numbering obtained in this step is numbered by the code review of outside input.
102nd, application corresponding with code review numbering is obtained from code inspection server according to code review numbering to produce Product personalized function code.
In actual project development, a usual project generally has what a development teams were developed, wherein different opens The personnel of sending out are responsible for the exploitation of different functions, in order to be managed to the code of all of developer, code is usually used and examines The management that software enters line code is looked into, all correlative codes of the project for finally giving are stored in the corresponding clothes of code inspection software On business device, the different code review numbering of different application product personalized function code correspondences in code inspection server, Therefore obtaining application product personalized function code needs to be obtained from code inspection server according to code review numbering.
103rd, application product personalized function code and general version code are carried out local integrated, obtains that there is personalization The application product code of function.
It should be noted that the general version code of application product had been loaded in locally under before integrated, should It can be by application product personalized function code to be carried out with personalization of product function code and general version code locally integrated With general version code carry out it is adaptive merge, finally give the application product code with personalized function.The mistake of merging Journey is typically used can merge what instrument was carried out with code.
104th, will issue after the application product code compilation with personalized function.
Code is issued in the present embodiment is performed by entering the software of line code issue, is being obtained by step 103 After application product code with personalized function, also the application product code with personalized function can be compiled automatically Translate, issued after compiling has no problem, be distributed to the user of corresponding individual demand.
The method that code provided in an embodiment of the present invention is issued, for the application product code for having individual demand is issued When, only corresponding application product personalized function code need to be obtained from code inspection server according to different demands, then Itself and the general version code of local application product are carried out integrated, rather than obtained general version code and application product The code of the new version after personalized function code is integrated, therefore for an application product in code inspection server, Only need to store single general version code and independent different application product personalized function code, therefore greatly save Memory space in code inspection server.
Refinement and extension to method shown in Fig. 1, the embodiment of the present invention additionally provides a kind of method that code is issued, and such as schemes Shown in 2:
201st, task triggering command is received.
Wherein task triggering command is to trigger the instruction that code is issued.It should be noted that triggering command can be user The triggering command of manually operated generation, or the automatic triggering command arranged according to the time cycle.
202nd, the prompting message of code review numbering is filled in output.
The prompting message of code review numbering is filled in output, is in order that code review volume is filled in outside by prompting message Number.Code review numbering therein is the code review numbering of application product personalized function code.Application product personalization work( Can modification code of the code as to particular code in the versatility code of application product.Application product personalized function code be for Meet the individual demand exploitation of user.In addition, prompting message can be form of prompting input frame etc..
203rd, the code review numbering of application product personalized function code is obtained.
After the confirmation message for receiving the outside code review numbering for filling in application product personalized function code, obtain Take the code review numbering of application product personalized function code.The code review of application product personalized function code is numbered The marking code of different application product personalized function codes can be distinguished, therefore obtains application product personalized function code Code review numbering be to subsequently according to code review numbering obtain corresponding application product personalized function code.
204th, correspondence code review numbering is obtained from Gerrit servers according to the Rest API of Gerrit servers right The application product personalized function code answered.
It should be noted that the code review software used in the present embodiment is Gerrit, so application product is personalized Function code is stored in Gerrit servers, and the application product personalized function code obtained in Gerrit servers belongs to remote Journey is obtained, it is therefore desirable to by the representative state transfer interface Rest API of Gerrit servers.It is distributed in Gerrit services Code resource in device everywhere by Uniform Resource Identifier (Uniform Resource Identifier, URI) determine, and Rest is the representation that the application of client obtains code by URI, and Rest is one group of framework constraints and principle, right Should be that corresponding application product personalization is obtained from Gerrit servers according to code review numbering in Rest in the present embodiment The rule of function code.
If it is further to note that application product personalized function code is stored in locally, being serviced using Gerrit The Git interfaces of device obtain application product personalized function code.
205th, the code in Gerrit is called to merge instrument by application product personalized function code and general version code Carry out integrated, obtain the application product code with personalized function.
Gerrit is the software of management code, including various functions, such as code merging, code inspection etc..Entering When line code is integrated, the code in Gerrit can be called to merge instrument by application product personalized function code and general version Code carries out integrated, obtains the application product code with personalized function.
206th, will issue after the application product code compilation with personalized function.
Code issues the code after the compiling for being generally all issue, therefore the code merging instrument in by Gerrit should Carried out with personalization of product function code and general version code it is integrated, after obtaining the application product code with personalized function Need to be compiled code, the user of corresponding individual demand is distributed to after compiling has no problem.
It is further to note that the method that code is issued in the present embodiment is applicable not only to answering for issuing personalized function With product, apply also for when the code to application product carries out functional test, in order to verify to a certain special function, and The situation to modifying using specific code in product code is needed, the code of the modification in above-mentioned situation is denoted as into test Code.It is to be directly integrated in the versatility code of application product to test code in the above case said, accordingly it is also possible to will Test code obtains the versatility code of test code, Jing test codes and application product using the mode in above-mentioned Fig. 1 or Fig. 2 Local integrated, the code of the application product for functional test is then obtained.It is specific to obtain test code and obtain application The mode of personalization of product function code is identical, will test code and general version code carry out integrated mode with will be using product It is identical that product personalized function code carries out integrated mode with general version code.
In addition, for the method that the code described in above-mentioned Fig. 1 and Fig. 2 is issued is realized by Jenkins.Jenkins is User continues the software that edition code is issued.It is that Jenkins and Gerrit are realized into lossless application product in above-described embodiment The code of versatility code is issued.Actual can be met in the application product code for locally flexibly obtaining different demands Property demand, also greatly saves the space in Gerrit servers.
In addition, the application product code with personalized function after being compiled can be recorded in Jenkins, it is convenient Use afterwards.And in prior art in order to save Gerrit servers in space and adopt make developer from Gerrit service Device obtains the versatility code of application product, is then locally developed and is compiled, then the side for tester's brush machine to be tested Formula, this kind of mode code with personalized function after having compiled will not retain, and need to also need to re-start out in next time Send out compiling, not reproducible utilization.The mode issued using the code in above-described embodiment can effectively overcome it is above-mentioned can not again The problem for utilizing again.
Further, as the realization to the various embodiments described above, another embodiment of the embodiment of the present invention additionally provides one The device that code is issued is planted, for realizing the method described in above-mentioned Fig. 1 and Fig. 2.As shown in figure 3, the device includes:First obtains Take unit 31, second acquisition unit 32, integrated unit 33 and release unit 34.
First acquisition unit 31, the code review for obtaining application product personalized function code is numbered, application product Personalized function code is that the general version code of application product is carried out for the personalized function demand of a certain application product The modification code of modification;
It should be noted that code review numbering is the numbering of Code Review, in Android projects, for any The modification code of particular code, all can have in the versatility code of the application product that build version application product codes have determined Corresponding code review numbering.Code review numbering is unique.Application product personalized function code in this step is Modification code to particular code.
In actual application, same application product, be distributed to not to user use when, it may be desirable to for use The individual demand at family is modified to particular code in the versatility code of application product, therefore is being distributed to user's application product When, need to merge versatility code or integrated with modification code.Therefore code, i.e. application product are changed firstly the need of obtaining Personalized function code.And personalization of product function code is distinguished by code review numbering, therefore obtaining application product Also need to obtain the code review numbering of application product personalized function code before personalized function code.
The code review numbering obtained in this step is numbered by the code review of outside input.
Second acquisition unit 32, compiles for being obtained from code inspection server according to code review numbering with code review Number corresponding application product personalized function code;
In actual project development, a usual project generally has what a development teams were developed, wherein different opens The personnel of sending out are responsible for the exploitation of different functions, in order to be managed to the code of all of developer, code is usually used and examines The management that software enters line code is looked into, all correlative codes of the project for finally giving are stored in the corresponding clothes of code inspection software On business device, the different code review numbering of different application product personalized function code correspondences in code inspection server, Therefore obtaining application product personalized function code needs to be obtained from code inspection server according to code review numbering.
Integrated unit 33, it is local integrated for application product personalized function code and general version code to be carried out, obtain To the application product code with personalized function;
It is further to note that general version code before integrated local, application product is personalized It can be by application product personalized function code and general version generation that function code is carried out locally integrated with general version code Code carries out adaptive merging, finally gives the application product code with personalized function.
Release unit 34, for will issue after the application product code compilation with personalized function.
Code is issued in the present embodiment is performed by entering the software of line code issue, is being obtained by integrated unit 33 To after the application product code with personalized function, also the application product code with personalized function can be compiled automatically Translate, issued after compiling has no problem, be distributed to the user of corresponding individual demand.
Second acquisition unit 32 is used for:
Code inspection server is Gerrit servers, according to the representative state transfer interface Rest of Gerrit servers API obtains correspondence code review from Gerrit servers and numbers corresponding application product personalized function code.
It should be noted that application product personalized function code is stored in Gerrit servers in the present embodiment, obtain Take the application product personalized function code in Gerrit servers and belong to long-range acquisition, it is therefore desirable to by Gerrit servers Representative state transfer interface Rest API.The code resource in Gerrit servers everywhere is distributed in by uniform resource identifier Symbol (Uniform Resource Identifier, URI) determines, and the application that Rest is client obtains code by URI Representation, Rest is one group of framework constraints and principle, is to be compiled according to code review corresponding to Rest in the present embodiment The rule of corresponding application product personalized function code number is obtained from Gerrit servers.
If it is further to note that application product personalized function code is stored in locally, being serviced using Gerrit The Git interfaces of device obtain application product personalized function code.
As shown in figure 4, device also includes:
Receiving unit 35, for before the code review numbering of application product personalized function code is obtained, receiving and appointing Business triggering command, task triggering command is to trigger the instruction that code is issued;
Wherein task triggering command is to trigger the instruction that code is issued.It should be noted that triggering command can be user The triggering command for manually generating, or the automatic triggering command arranged according to the time cycle.
Output unit 36, for the prompting message that code review numbering is filled in output.
The prompting message of code review numbering is filled in output, is in order that code review volume is filled in outside by prompting message Number, code review numbering therein is the code review numbering of application product personalized function code.Application product personalization work( Can modification code of the code as to particular code in the versatility code of application product.Application product personalized function code be for Meet the individual demand exploitation of user.In addition, prompting message can be form of prompting input frame etc..
Integrated unit 33 is used for:
Calling the code in Gerrit to merge instrument carries out application product personalized function code with general version code It is integrated.
Gerrit is the software of management code, including various functions, such as code merging, code inspection etc..Entering When line code is integrated, the code in Gerrit can be called to merge instrument by application product personalized function code and general version Code carries out integrated, obtains the application product code with personalized function.
Application product personalized function code includes in second acquisition unit 32:
The test code of functional test is carried out to application product.
It should be noted that the application that the method that code is issued in the present embodiment is applicable not only to issuing personalized function is produced Product, apply also for when functional test is carried out to application product, in order to verify to a certain special function, and need to application The situation that specific code is modified in product code, the code of the modification in above-mentioned situation is denoted as to test code.Upper It is to be directly integrated in the versatility code of application product to state and test in situation code, accordingly it is also possible to code will be tested Test code is obtained using the mode in above-mentioned Fig. 3 or Fig. 4, Jing test codes are locally collecting with the versatility code of application product Into then obtaining the code of the application product for functional test.It is specific to obtain test code and obtain application product individual character The mode for changing function code is identical, test code and general version code is carried out into integrated mode personalized with by application product It is identical that function code carries out integrated mode with general version code.
The device that code provided in an embodiment of the present invention is issued, for the application product code for having individual demand is issued When, only corresponding application product personalized function code need to be obtained from code inspection server according to different demands, then Itself and the general version code of local application product are carried out integrated, rather than obtained general version code and application product The code of the new version after personalized function code is integrated, therefore for an application product in code inspection server, Only need to store single general version code and independent different application product personalized function code, therefore greatly save Memory space in code inspection server.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
It is understood that said method and the correlated characteristic in device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be, for distinguishing each embodiment, and not represent the quality of each embodiment.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
Provided herein algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment. Various general-purpose systems can also be used together based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In specification mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing denomination of invention according to embodiments of the present invention (as code is issued Device) in some or all parts some or all functions.The present invention is also implemented as performing institute here (for example, computer program and computer program are produced for some or all equipment of the method for description or program of device Product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or to appoint What other forms is provided.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of method that code is issued, it is characterised in that include:
Obtain application product personalized function code code review numbering, the application product personalized function code be for The modification code that the personalized function demand of a certain application product is modified to the general version code of the application product;
Application corresponding with code review numbering is obtained from code inspection server according to code review numbering to produce Product personalized function code;
The application product personalized function code and the general version code are carried out local integrated, obtain that there is personalization The application product code of function;
To issue after application product code compilation with personalized function.
2. method according to claim 1, it is characterised in that the code inspection server is Gerrit servers, institute State and obtained from code inspection server and the code review corresponding application product of numbering according to code review numbering Personalized function code includes:
According to the representative state transfer interface Rest API of Gerrit servers obtain correspondence from Gerrit servers Code review numbers corresponding application product personalized function code.
3. method according to claim 1 and 2, it is characterised in that in the generation for obtaining application product personalized function code Before code evaluation numbering, methods described also includes:
Reception task triggering command, the task triggering command is to trigger the instruction that code is issued;
The prompting message of code review numbering is filled in output.
4. method according to claim 3, it is characterised in that described by the application product personalized function code and institute State general version code carry out it is local it is integrated including:
The code in Gerrit is called to merge instrument by the application product personalized function code and the general version code Carry out integrated.
5. method according to claim 4, it is characterised in that the application product personalized function code includes:
The test code of functional test is carried out to the application product.
6. method according to claim 5, it is characterised in that the method that the code is issued is realized by Jenkins.
7. the device that a kind of code is issued, it is characterised in that include:
First acquisition unit, the code review for obtaining application product personalized function code is numbered, the application product Property function code is that the general version code of the application product is entered for the personalized function demand of a certain application product The modification code of row modification;
Second acquisition unit, for being obtained from code inspection server and the code review according to code review numbering Number corresponding application product personalized function code;
Integrated unit, it is local integrated for the application product personalized function code and the general version code to be carried out, Obtain the application product code with personalized function;
Release unit, for will issue after the application product code compilation with personalized function.
8. device according to claim 7, it is characterised in that the second acquisition unit is used for:
The code inspection server is Gerrit servers, according to the representative state transfer interface Rest of Gerrit servers API obtains the correspondence code review from Gerrit servers and numbers corresponding application product personalized function code.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Receiving unit, for before the code review numbering of application product personalized function code is obtained, receiving task triggering Instruction, the task triggering command is to trigger the instruction that code is issued;
Output unit, for the prompting message that code review numbering is filled in output.
10. device according to claim 9, it is characterised in that the integrated unit is used for:
The code in Gerrit is called to merge instrument by the application product personalized function code and the general version code Carry out integrated.
CN201611260960.7A 2016-12-30 2016-12-30 Code publishing method and device Active CN106648823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611260960.7A CN106648823B (en) 2016-12-30 2016-12-30 Code publishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611260960.7A CN106648823B (en) 2016-12-30 2016-12-30 Code publishing method and device

Publications (2)

Publication Number Publication Date
CN106648823A true CN106648823A (en) 2017-05-10
CN106648823B CN106648823B (en) 2019-12-10

Family

ID=58837470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611260960.7A Active CN106648823B (en) 2016-12-30 2016-12-30 Code publishing method and device

Country Status (1)

Country Link
CN (1) CN106648823B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450923A (en) * 2017-07-28 2017-12-08 郑州云海信息技术有限公司 A kind of Program Realizing Method and device for customizing baseline separation
CN108920164A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 The management method and device of host in cloud computing system
CN110704297A (en) * 2019-08-15 2020-01-17 平安普惠企业管理有限公司 Code evaluation method and device, computer equipment and storage medium
CN112596760A (en) * 2020-12-09 2021-04-02 武汉联影医疗科技有限公司 Software maintenance method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103677821A (en) * 2013-12-05 2014-03-26 金蝶软件(中国)有限公司 Method and device for publishing software development tool code
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system
CN105739968A (en) * 2016-01-20 2016-07-06 北京京东尚科信息技术有限公司 Method and device for reviewing update content based on distributed version control system Git
US20160246699A1 (en) * 2015-02-25 2016-08-25 Red Hat Israel, Ltd. Verification of product release requirements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336688A (en) * 2013-06-20 2013-10-02 中标软件有限公司 Software integrating method and system oriented to cloud computing software research and development process
CN103677821A (en) * 2013-12-05 2014-03-26 金蝶软件(中国)有限公司 Method and device for publishing software development tool code
US20160246699A1 (en) * 2015-02-25 2016-08-25 Red Hat Israel, Ltd. Verification of product release requirements
CN105404519A (en) * 2015-12-07 2016-03-16 青岛海信电器股份有限公司 Version control method, code testing method and system
CN105739968A (en) * 2016-01-20 2016-07-06 北京京东尚科信息技术有限公司 Method and device for reviewing update content based on distributed version control system Git

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450923A (en) * 2017-07-28 2017-12-08 郑州云海信息技术有限公司 A kind of Program Realizing Method and device for customizing baseline separation
CN108920164A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 The management method and device of host in cloud computing system
CN110704297A (en) * 2019-08-15 2020-01-17 平安普惠企业管理有限公司 Code evaluation method and device, computer equipment and storage medium
CN110704297B (en) * 2019-08-15 2024-02-06 天翼安全科技有限公司 Code review method, device, computer equipment and storage medium
CN112596760A (en) * 2020-12-09 2021-04-02 武汉联影医疗科技有限公司 Software maintenance method, device and equipment

Also Published As

Publication number Publication date
CN106648823B (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN109857667B (en) Interface automation test method, test device, test equipment and storage medium
CN104572114B (en) A kind of binding device, using updating device and method
CN103530231B (en) Application program testing method and system based on service process control
CN106648823A (en) Code release method and apparatus
CN106095673A (en) Automated testing method based on WEB interface and system
CN104881343B (en) A kind of method of testing and test system
CN106649057A (en) Method and device for testing server pressure
CN104978258A (en) Software automation test method and system
CN105471968B (en) A kind of method for interchanging data, system and data platform server
CN106681921A (en) Method and device for achieving data parameterization
CN106648664A (en) Self-service terminal business process updating method and apparatus
CN103714002B (en) Project testing method and device based on configuration system
CN106776327A (en) A kind of application program regression testing method and device
CN113138929A (en) Distributed interface testing method and device, electronic equipment and storage medium
CN109801677A (en) Sequencing data automated analysis method, apparatus and electronic equipment
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN105868639A (en) Kernel vulnerability repair method and device
CN105553671B (en) A kind of management method of digital certificate, apparatus and system
CN111881042A (en) Automatic test script generation method and device and electronic equipment
CN111309624B (en) Test method, test device, test equipment and storage medium
CN106775951A (en) A kind of operation management method and device of Android application
CN106919431B (en) Code comparison method, equipment and system in continuous integration
CN103647775A (en) Method and apparatus for registration in webpage
CN110135940A (en) Kitchen order display device and method afterwards
CN105975329A (en) Creating method and device of virtual machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant