CN110058860A - A kind of automatic delivery method of code, device, equipment and computer storage medium - Google Patents

A kind of automatic delivery method of code, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110058860A
CN110058860A CN201910202281.1A CN201910202281A CN110058860A CN 110058860 A CN110058860 A CN 110058860A CN 201910202281 A CN201910202281 A CN 201910202281A CN 110058860 A CN110058860 A CN 110058860A
Authority
CN
China
Prior art keywords
code
source code
item
components
current source
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.)
Pending
Application number
CN201910202281.1A
Other languages
Chinese (zh)
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.)
Ping An Urban Construction Technology Shenzhen Co Ltd
Original Assignee
Ping An Urban Construction Technology Shenzhen Co Ltd
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 Ping An Urban Construction Technology Shenzhen Co Ltd filed Critical Ping An Urban Construction Technology Shenzhen Co Ltd
Priority to CN201910202281.1A priority Critical patent/CN110058860A/en
Publication of CN110058860A publication Critical patent/CN110058860A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of automatic delivery method of code, device, equipment and computer storage mediums.The described method includes: local programming terminal obtains item code, and the current source code components for code reference of identifying project;Then split source code storage is traversed, when traversing the object code components different from current source code components, object code component is pulled from Open Source Code warehouse to local, the Open Source Code warehouse is used for the code components quoted when preset period of time obtains different program terminals in programming respectively;Shell script is generated further according to object code component and current source code components, item code is compiled based on shell script;The item code of compiling is finally packaged into the compressed file suitable for preset kind server, and sends preset kind server for compressed file, to realize the automatic delivery of item code, effectively improves the working efficiency of programmer.

Description

A kind of automatic delivery method of code, device, equipment and computer storage medium
Technical field
The present invention relates to computer information technology field more particularly to a kind of automatic delivery method of code, device, equipment and Computer storage medium.
Background technique
A common enterprise software usually requires more than ten of programmer and develops, and different programmers is responsible for the software Different modular programs is write.Every time needs the generation write to each programmer in the project progress of software development Code is integrated and is compiled, such as the code for being write each programmer is needed to integrate and compile daily, to ensure to work as Whether the code function that its each programmer is write is normal, and then can ensure that second day engineering is in qualified code On the basis of be unfolded.
Existing processing mode is that the code that each programmer writes oneself is submitted to a specified host, host tool There is the dynamic code library that can be used in developing the enterprise software project.But the code that programmer writes oneself is submitted to the master After machine, following problems are often encountered:
The code library of the given host is dynamically, the code library on host used in code may to be write with programmer Source code components are different, after the code that programmer submits code to the given host and submission is compiled, then fetch oneself generation Code can find it is not the source code oneself submitted for the first time.And it is all manual operation mostly that programmer, which fetches code, out Wrong probability is bigger, has seriously affected the working efficiency of programmer.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of automatic delivery installation method, apparatus of code, equipment and calculating Machine storage medium, it is intended to when solving current procedure person's exploitation software project, cannot achieve automatic code delivery, seriously affect program Employee makees efficiency.
To achieve the above object, it the present invention provides a kind of automatic delivery method of code, the described method comprises the following steps:
Local programming terminal obtains item code, and determines multiple current source code components of the item code reference;
Split source code storage is traversed, and the object code different from the multiple current source code components is being traversed When component, the object code component is pulled from the Open Source Code warehouse to local, the Open Source Code warehouse is used for The code components quoted when preset period of time receives different program terminals in programming respectively;
Shell script is generated according to the object code component and the multiple current source code components, is based on the shell Script is compiled the item code;
The item code of compiling is packaged into the compressed file suitable for preset kind server, and the compressed file is sent out It is sent to the preset kind server, to realize the automatic delivery of the item code.
Preferably, the acquisition item code, and determine multiple current source code components of the item code reference Step, comprising:
The code delivery request of responder person's input obtains local project code, and determines the item code reference Multiple current source code components;
The mark of the multiple current source code components is sent to Open Source Code warehouse, so that the Open Source Code warehouse The mark for the source code components that different program terminals are sent is summarized, and the mark of each source code components is opened with described The Open Source Code component prestored in source code storage is associated, and forms a current source code components set.
Preferably, described to pull the object code component from the Open Source Code warehouse to local step, packet It includes:
The object code component is pulled from the Open Source Code warehouse to local, the object code component that will be pulled It is stored in local log information;
It is described according to the object code component and the multiple current source code components generate shell script, based on described The step of shell script is compiled the item code, comprising:
The local path of each current source code components is determined respectively, and determines the mark of each current source code components;
The object code component is obtained from the local log information;
The object code component and the multiple current source code components are sent into kernel to generate shell script;
The item code is compiled as binary data based on the shell script.
Preferably, the local programming terminal obtains item code, and determines the multiple current of the item code reference The step of source code components, comprising:
Local programming terminal obtains the item code that programmer is write based on Software Development Tools, and determines the project generation Multiple current source code components of code reference and the original version number of the Software Development Tools;
It is traversed in the split source code storage, is traversing the mesh different from the multiple current source code components When marking code components, by the object code component from being pulled in the Open Source Code warehouse to before local step, comprising:
Split source code storage is monitored, and there are the Software Development Tools in listening to the Open Source Code warehouse New version number when, the original version number of the Software Development Tools is sent to the Open Source Code warehouse, so that described Open Source Code warehouse determines new source code components according to the original version number and new version number of the Software Development Tools, by institute New source code components are stated to be sent into current source code components set.
Preferably, the preset kind server disposition has application container engine;
It is described to send the preset kind server for the compressed file, to realize the automatic friendship of the item code The step of paying, comprising:
The compressed file is sent to the preset kind server, so that the preset kind server will be different The compressed file that program terminal is sent is saved under the home directory of the preset kind server, and is based on the application container Engine integrates each compressed file, realizes the automatic delivery of each item code, and the item file disposed is described Include image file in the item file of deployment, and the image file is fed back into each program terminal.
Preferably, the corresponding mapped port of the image file, the method also includes:
The code debugging request of local programming terminal responder person input, runs the image file, with to described pre- If type servers send the access request of the mapped port, so that the preset kind server is to the local programming Terminal feeds back the item file disposed corresponding with the mapped port;
The code of the item file disposed is debugged based on code debugging request.
Preferably, described that the code of the item file of the deployment is debugged based on code debugging request, have Body includes:
The code of the item file disposed is shown, is requested based on the code debugging to the generation in displaying Code is debugged line by line.
In addition, to achieve the above object, the present invention also proposes a kind of automatic delivery installation of code, described device includes:
Module is obtained, obtains item code for terminal, and determines multiple current source codes of the item code reference Component;
Spider module is traversed for split source code storage, is being traversed and the multiple current source code components When different object code component, the object code component is pulled from the Open Source Code warehouse to local, it is described to open Source code storage is used for the code components quoted when preset period of time receives different program terminals in programming respectively;
Collector, for generating shell foot according to the object code component and the multiple current source code components This, is compiled the item code based on the shell script;
Delivery module, for the item code of compiling to be packaged into the compressed file suitable for preset kind server, and will The compressed file is sent to the preset kind server, to realize the automatic delivery of the item code.
In addition, to achieve the above object, the present invention also proposes a kind of equipment delivered automatically for code, the equipment packet It includes: memory, processor and being stored in the code that can be run on the memory and on the processor and deliver program automatically, The code delivers the step of program is arranged for carrying out code as described above automatic delivery method automatically.
In addition, to achieve the above object, the present invention also proposes a kind of computer storage medium, the computer storage medium It is stored with code and delivers program automatically, the code delivers program automatically and is arranged for carrying out the code as described above side of delivery automatically The step of method.
Local programming terminal of the invention obtains item code first, and the current source code group for code reference of identifying project Part;Then split source code storage is traversed, will when traversing the object code components different from current source code components Object code component is pulled from Open Source Code warehouse to local, and the Open Source Code warehouse for obtaining respectively in preset period of time The code components that different program terminals are quoted in programming;Shell is generated further according to object code component and current source code components Script is compiled item code based on shell script;Finally the item code of compiling is packaged into and is taken suitable for preset kind The compressed file of business device, and preset kind server is sent by compressed file, to realize the automatic delivery of item code, this hair Bright above scheme is different from for programmer after writing item code, needing will be each by way of manual setting in the prior art Code components cited in programmer carry out unified setting, effectively improve the working efficiency of programmer.
Detailed description of the invention
Fig. 1 is that the code for the hardware running environment that the embodiment of the present invention is related to delivers the structural representation of equipment automatically Figure;
Fig. 2 is a kind of flow diagram of the automatic delivery method first embodiment of code of the present invention;
Fig. 3 is a kind of flow diagram of the automatic delivery method second embodiment of code of the present invention;
Fig. 4 is a kind of automatic delivery method 3rd embodiment flow diagram of code of the present invention;
Fig. 5 is the structural block diagram that a kind of code of the present invention delivers the automatic delivery installation of code automatically.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Referring to Fig.1, Fig. 1 is that the code that is used for for the hardware running environment that the embodiment of the present invention is related to delivers equipment automatically Structural schematic diagram.
As shown in Figure 1, the equipment may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to the equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Letter module, user's receiving module and code deliver program automatically.
In equipment shown in Fig. 1, the automatic delivery installation of code of the invention calls memory by processor 1001 The code stored in 1005 delivers program automatically, and the step of executing code automatic delivery method.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of the automatic delivery method first embodiment of code of the present invention.
In the present embodiment, the automatic delivery method of code the following steps are included:
Step S10: local programming terminal obtains item code, and determines multiple current source generations of the item code reference Code character part;
It should be noted that the executing subject of the present embodiment is the local programming terminal, i.e. programmer writes currentitem The terminal device of mesh software, the program terminal can be laptop and be also possible to desktop computer.
The program terminal can be same terminal device with the above-mentioned equipment delivered automatically for code.Preferably, originally Embodiment is illustrated so that the program terminal and the above-mentioned equipment delivered automatically for code are the same terminal devices as an example. The equipment that the code is delivered automatically is mounted with the open source software based on the exploitation of Java programming language, and (corresponding following codes are certainly Dynamic delivery installation), the easy-to-use software platform of opening (platform can provide a code delivery interface) can be provided, had Having being capable of the function of software item destination code write of continuous integrating programmer.
In the concrete realization, the item code of one section of current project software is finished writing by local programming terminal as programmer When, programmer can click the delivery request button on code delivery interface, and the automatic delivery installation of code receives code After delivery request, the item code in local programming terminal can be obtained, and programmer can quote during writing item code The original of the Software Development Tools (such as can be Java programming language, be also possible to C# Object-Oriented Programming Language) of programming language Open Source Code component in raw code library, if for example, if what the item code was write based on C# language, if to realize with If database carries out the function of data interaction, then SqlClient (the sqlserver database of Microsoft's publication must be quoted Ado.net procedure set) this source code components, corresponding code are as follows: using System.Data.SqlClient, in turn The SqlConnection being able to use in the source code components, SqlCommand, the objects such as SqlDateAdapter carry out access number According to library.
Step S20: split source code storage is traversed, different from the multiple current source code components traversing When object code component, the object code component is pulled from the Open Source Code warehouse to local, the Open Source Code Warehouse is used for the code components quoted when preset period of time obtains different program terminals in programming respectively.
It should be noted that the Open Source Code warehouse is located on the terminal device individually set up, in the present embodiment Open Source Code warehouse be illustrated by taking open source projects hosted platform github as an example, the Open Source Code warehouse be integrated with it is a variety of not The corresponding Open Source Code with programming software developing instrument.
In the concrete realization, for different programmers when writing a project software, each programmer is responsible for corresponding project The partial function code of software, when project reaches certain time node (such as setting preset period of time is 48 hours), each The program terminal of programmer can obtain the item code that programmer writes, and determine multiple current sources of the item code reference Code components, while the mark of fixed current source code components can be issued Open Source Code warehouse by each program terminal Github, mark title (each code components for the source code components that then Open Source Code warehouse sends different program terminals Mark title in code library is all unique) summarized, and the mark title of each source code components is opened with described The Open Source Code component prestored in source code storage is associated, and forms a current source code components set.Such as programmer Be to be developed using C# Object-Oriented Programming Language to current project, the current source code group of each program terminal reference Part belongs to C#, then after Open Source Code warehouse github receives the source code components mark that each program terminal is sent, directly It is associated with out source code components corresponding with these marks from the Open Source Code of the C# Software Development Tools of github, forms one Unified current source code components set.
Further, source code components cited in the code write as different programmers are different, but when each After item code is integrated, a unified code library is needed, such as: programmer A refers to source code when writing item code Component a, programmer B refer to source code components b when writing item code, although programmer A when writing item code not The function of source code components b is needed, but due between different item codes after the item code of two programmers is integrated Function play the role of interaction, therefore after two item codes are integrated, the item code and programmer B of Yao Shixian programmer A Item code between interaction function, the code library of programmer A and programmer B respectively used must unite, i.e., all Source code components a and source code components b is quoted, programmer must be configured manually, and one example of the above only act is simple Example, but programmer different in actual items software development process has thousands of kinds to reference source code components in total, Programmer's manual setting can be very inconvenient in this way.
And the automatic delivery installation of code of the present embodiment writes one section of event code in advance, this section of event code for " After the multiple current source code components are sent to Open Source Code warehouse by program terminal, current source generation in split source code storage Code assembly set is traversed ", the automatic delivery installation of code can be by the Open Source Code component traversed and local programming terminal The multiple current source code components are compared, if traversing the object code different from the multiple current source code components When component, then the object code that the object code component is pulled to local from the Open Source Code warehouse, and will pulled Component is stored in local log information.
Step S30: shell script is generated according to the object code component and the multiple current source code components, is based on The shell script is compiled the item code;
Specifically, the present embodiment can call shell window nodal section, determine the local of each current source code components respectively Path, and determine the title of each current source code components;The object code component is obtained from local log information simultaneously, The information of the fixed object code component and the multiple current source code components is shown to shell window nodal section In, shell script is sent into kernel and then is generated to the object code component and the multiple current source code components, is based on The item code is compiled as binary data and (can be binary data, be also possible to decimal number by the shell script According to).
Step S40: being packaged into the compressed file suitable for preset kind server for the item code of compiling, and by the pressure Contracting file is sent to the preset kind server, to realize the automatic delivery of the item code.
In the concrete realization, the preset kind server of the present embodiment will be compiled into system by taking Tomcat server as an example The item code of data is packaged into the compressed file of the war format suitable for Tomcat server, sends jar formatted file to Tomcat server.Compiled item code can be transmitted to automatically Tomcat server by program terminal each in this way, The Servlet container of tomcat can identify war packet and automatic deployment.
The local programming terminal of the present embodiment obtains item code first, and the current source code for code reference of identifying project Component;Then split source code storage is traversed, when traversing the object code components different from current source code components, Object code component is pulled from Open Source Code warehouse to local, the Open Source Code warehouse for obtaining respectively in preset period of time The code components for taking different program terminals to quote in programming;Shell is generated further according to object code component and current source code components Layer script, is compiled item code based on shell script;Finally the item code of compiling is packaged into suitable for preset kind The compressed file of server, and preset kind server is sent by compressed file, to realize the automatic delivery of item code.This Invention above scheme is different from for programmer after writing item code, needing will be every by way of manual setting in the prior art Code components cited in a programmer carry out unified setting, effectively improve the working efficiency of programmer.
Referring to Fig. 3, Fig. 3 is a kind of flow diagram of the automatic delivery method second embodiment of code of the present invention, based on upper The automatic delivery method first embodiment of code is stated, proposes a kind of automatic delivery method second embodiment of code of the present invention.
In the present embodiment, the step S10 is specifically included:
Step S101: local programming terminal obtains the item code that programmer is write based on Software Development Tools, and determines Multiple current source code components of the item code reference and the original version number of the Software Development Tools.
It will be appreciated that when for one Large-Scale Projects of exploitation, it is impossible to guarantee each programmer for participating in exploitation The version of the Software Development Tools used is all identical, such as some programmers get used to the software development work of version very early Tool, and some programmers get used to the newer Software Development Tools of version, the project of the Software Development Tools based on different editions Code when integrated, needs programmer manually to reset lower compatibility every time, pretty troublesome in this way.
In the concrete realization, the local programming terminal of each programmer of the present embodiment can be in the item for determining that programmer is write While current source code components cited in mesh code, it can go to obtain the Software Development Tools loaded in corresponding program terminal Original version number.
Correspondingly, before the step S20, the method also includes:
Step S102: split source code storage is monitored, and there are described soft in listening to the Open Source Code warehouse When the new version number of part developing instrument, the original version number of the Software Development Tools is sent to the Open Source Code warehouse, So that the Open Source Code warehouse determines new source generation according to the original version number and new version number of the Software Development Tools The new source code components are sent into current source code components set by code character part.
It will be appreciated that the present embodiment using github as the Open Source Code warehouse for be illustrated, the open source generation Code warehouse is integrated with the Open Source Code of the Software Development Tools of a variety of programming languages, and can be in real time to different programming languages Software Development Tools version is updated, and can store newest Open Source Code.
Specifically, the local programming terminal of the present embodiment can call event functions CheUpdateEvent () split in real time The version number of Software Development Tools in source code storage monitor, in the software development work for listening to local programming terminal It, can be by the original version number of the Software Development Tools loaded in program terminal when tool has new version in Open Source Code warehouse It is compared with above-mentioned new version number, the primary source code components of the Software Development Tools of new version is determined according to comparison result In which be " new " source code components not available for the legacy version Software Development Tools of the program terminal.
Then the Open Source Code warehouse can will described in the current source code components set of " new " source code components feeding, Then execute the step S20, so can each programmer item code before integrating by source code components It is unified to arrive latest edition, it can solve in Large-Scale Projects development process, used due to multiple and different programmers Software Development Tools version is different, and the item code for causing each distinct program person to write needs programmer when being integrated Manually reset the problem of lower compatibility.
Referring to Fig. 4, Fig. 4 is a kind of flow diagram of the automatic delivery method 3rd embodiment of code of the present invention, based on upper The automatic delivery method first embodiment of code is stated, proposes a kind of automatic delivery method 3rd embodiment of code of the present invention.
In the present embodiment, the preset kind server disposition has application container engine, and the step S40 is specifically included:
Step S401: being sent to the preset kind server for the compressed file, so that the preset kind takes The compressed file that different program terminals are sent is saved under the home directory of the preset kind server by business device, and is based on institute It states application container engine to integrate each compressed file, realizes the automatic delivery of each item code, the item disposed Mesh file includes image file in the item file of the deployment, and the image file is transferred to each program terminal.
Wherein, the corresponding mapped port of the image file, the preset kind server are available with each programmer's For program terminal not in a local area network, the effect of the mapped port is can be by the IP address of preset kind server A port is respectively mapped on the program terminal machine for participating in each programmer of software project.
Correspondingly, the automatic delivery method further comprises:
Step S50: the code debugging request of local programming terminal responder person input runs the image file, with The access request of the mapped port is sent to the preset kind server, so that the preset kind server is to described Local programming terminal feeds back the item file disposed corresponding with the mapped port, is requested based on the code debugging to institute The code for stating the item file disposed is debugged.
It will be appreciated that the usually item code of programmer is integrated after operation, programmer can just find it is some oneself Before without finding new code issue, before item code is integrated, these problems can't be in item code debugging process It is shown in program terminal.Therefore, programmer must remember that item code is integrated to the rear problem, if problem is too many It is unfavorable for programmer and modifies code, has seriously affected development efficiency.
And the present embodiment can trigger the image file in program terminal, i.e., ask in the code debugging for receiving programmer's input After asking, the image file is run, to send the access request of the mapped port, such institute to the preset kind server State preset kind server can feed back at once one it is corresponding with the mapped port it is integrated after item file, be based on institute Code debugging request is stated to debug the code in displaying line by line.Even and if then the item code that programmer writes is integrated it Afterwards, each programmer can also debug the item file code disposed in the program terminal of oneself, improve each program The working efficiency of member.
In addition, the present invention also proposes a kind of automatic delivery installation of code referring to Fig. 5, described device includes:
Module 10 is obtained, obtains item code for terminal, and determines multiple current source generations of the item code reference Code character part;
Spider module 20 is traversed for split source code storage, is being traversed and the multiple current source code group When the different object code component of part, the object code component is pulled from the Open Source Code warehouse to local, it is described Open Source Code warehouse is used for the code components quoted when preset period of time obtains different program terminals in programming respectively;
Collector 30, for generating shell foot according to the object code component and the multiple current source code components This, is compiled the item code based on the shell script;
Delivery module 40, for the item code of compiling to be packaged into the compressed file suitable for preset kind server, and The preset kind server is sent by the compressed file, to realize the automatic delivery of the item code.
It will be appreciated that the automatic delivery installation of the code of this implementation can be a kind of computer applied algorithm, the computer The code that application program is loaded in above-described embodiment is delivered in equipment automatically, the specific reality of the automatic delivery installation of code of the invention Existing mode can refer to the automatic delivery method embodiment of above-mentioned code, and details are not described herein again.
In addition, being stored with code in the computer storage medium certainly the present invention also provides a kind of computer storage medium Dynamic to deliver program, the code is delivered automatically realizes code as described above automatic delivery method step when program is executed by processor Suddenly.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of automatic delivery method of code, which is characterized in that the described method includes:
Local programming terminal obtains item code, and determines multiple current source code components of the item code reference;
Split source code storage is traversed, and the object code component different from the multiple current source code components is being traversed When, the object code component is pulled from the Open Source Code warehouse to local, the Open Source Code warehouse is used for pre- If the period obtains the code components that different program terminals are quoted in programming respectively;
Shell script is generated according to the object code component and the multiple current source code components, is based on the shell script The item code is compiled;
The item code of compiling is packaged into the compressed file suitable for preset kind server, and sends the compressed file to The preset kind server, to realize the automatic delivery of the item code.
2. the method as described in claim 1, which is characterized in that the acquisition item code, and determine that the item code is drawn The step of multiple current source code components, comprising:
The code delivery request of responder person's input obtains local project code, and determines the more of the item code reference A current source code components;
The mark of the multiple current source code components is sent to Open Source Code warehouse, so that the Open Source Code warehouse is not to The mark of source code components sent with program terminal is summarized, and by the mark of each source code components and the open source generation The Open Source Code component prestored in code warehouse is associated, and forms a current source code components set.
3. the method as described in claim 1, which is characterized in that it is described by the object code component from the Open Source Code storehouse Local step is pulled in library, comprising:
The object code component is pulled from the Open Source Code warehouse to local, the object code component pulled is stored in In local log information;
It is described according to the object code component and the multiple current source code components generate shell script, be based on the shell The step of script is compiled the item code, comprising:
The local path of each current source code components is determined respectively, and determines the mark of each current source code components;
The object code component is obtained from the local log information;
The object code component and the multiple current source code components are sent into kernel to generate shell script;
The item code is compiled as binary data based on the shell script.
4. the method according to claim 1, which is characterized in that the local programming terminal obtains item code, And the step of determining multiple current source code components of the item code reference, comprising:
Local programming terminal obtains the item code that programmer is write based on Software Development Tools, and determines that the item code is drawn The original version number of multiple current source code components and the Software Development Tools;
It is traversed in the split source code storage, is traversing the target generation different from the multiple current source code components When code character part, by the object code component from being pulled in the Open Source Code warehouse to before local step, comprising:
Split source code storage is monitored, and there are the new of the Software Development Tools in listening to the Open Source Code warehouse When version number, the original version number of the Software Development Tools is sent to the Open Source Code warehouse, so that the open source Code storage determines new source code components according to the original version number and new version number of the Software Development Tools, will be described new Source code components be sent into current source code components set.
5. the method according to claim 1, which is characterized in that it is characterized in that, the preset kind server It is deployed with application container engine;
It is described send the preset kind server for the compressed file, to realize delivering automatically for the item code Step, comprising:
The compressed file is sent to the preset kind server, so that the preset kind server is by different programmings The compressed file that terminal is sent is saved under the home directory of the preset kind server, and is based on the application container engine Each compressed file is integrated, realizes the automatic delivery of each item code, the item file disposed, the deployment Item file in include image file, and the image file is fed back into each program terminal.
6. method as claimed in claim 5, which is characterized in that the corresponding mapped port of the image file, the method is also Include:
The code debugging request of local programming terminal responder person input, runs the image file, with to the default class Type server sends the access request of the mapped port, so that the preset kind server is to the local programming terminal Feed back the item file disposed corresponding with the mapped port;
The code of the item file disposed is debugged based on code debugging request.
7. method as claimed in claim 6, which is characterized in that the item requested based on the code debugging to the deployment The code of mesh file is debugged, and is specifically included:
The code of the item file disposed is shown, based on the code debugging request to the code in displaying into Row is debugged line by line.
8. a kind of automatic delivery installation of code, which is characterized in that described device includes:
Module is obtained, obtains item code for terminal, and determines multiple current source code components of the item code reference;
Spider module is traversed for split source code storage, different from the multiple current source code components traversing Object code component when, the object code component is pulled from the Open Source Code warehouse to local, the open source generation Code warehouse is used for the code components quoted when preset period of time obtains different program terminals in programming respectively;
Collector, for generating shell script, base according to the object code component and the multiple current source code components The item code is compiled in the shell script;
Delivery module, for the item code of compiling to be packaged into the compressed file suitable for preset kind server, and will be described Compressed file is sent to the preset kind server, to realize the automatic delivery of the item code.
9. a kind of equipment delivered automatically for code, which is characterized in that the equipment includes: memory, processor and storage On the memory and the code that can run on the processor delivers program automatically, and the code is delivered program automatically and matched It is set to the step of realizing code as described in any one of claims 1 to 7 automatic delivery method.
10. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with code and delivers journey automatically Sequence, the code deliver program automatically and are arranged for carrying out the automatic delivery method of code as described in any one of claims 1 to 7 The step of.
CN201910202281.1A 2019-03-16 2019-03-16 A kind of automatic delivery method of code, device, equipment and computer storage medium Pending CN110058860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910202281.1A CN110058860A (en) 2019-03-16 2019-03-16 A kind of automatic delivery method of code, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910202281.1A CN110058860A (en) 2019-03-16 2019-03-16 A kind of automatic delivery method of code, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN110058860A true CN110058860A (en) 2019-07-26

Family

ID=67316937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910202281.1A Pending CN110058860A (en) 2019-03-16 2019-03-16 A kind of automatic delivery method of code, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110058860A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727457A (en) * 2019-08-30 2020-01-24 平安证券股份有限公司 Component management method, device, storage medium and electronic equipment
CN111078193A (en) * 2019-12-11 2020-04-28 镇江新一代信息技术产业研究院有限公司 Software development method and system for data analysis system
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN112181403A (en) * 2020-09-27 2021-01-05 北京浪潮数据技术有限公司 Development, operation and maintenance integration realization method, device and equipment and readable storage medium
CN112394949A (en) * 2020-12-03 2021-02-23 中国科学院软件研究所 Service version dynamic configuration method for continuous integration
CN113094711A (en) * 2021-04-30 2021-07-09 云南电网有限责任公司 Open source code detection method and system based on staged project development
CN113485743A (en) * 2021-07-19 2021-10-08 上汽通用五菱汽车股份有限公司 CDH operation configuration method based on source code management and readable storage medium
CN113741903A (en) * 2021-09-18 2021-12-03 中国银行股份有限公司 Automatic product packaging method and system
CN114115982A (en) * 2021-12-02 2022-03-01 建信金融科技有限责任公司 Code issuing method, device, equipment and storage medium
CN114327478A (en) * 2021-12-27 2022-04-12 海信集团控股股份有限公司 Automatic application program delivery method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199667A (en) * 2014-09-10 2014-12-10 南靖万利达科技有限公司 Method and system for newly establishing MTK project and submitting codes
US20150135166A1 (en) * 2013-11-12 2015-05-14 Microsoft Corporation Source code generation, completion, checking, correction
CN105549959A (en) * 2015-12-04 2016-05-04 小米科技有限责任公司 Compiling inspection method and device
CN106873975A (en) * 2016-12-30 2017-06-20 武汉默联股份有限公司 Devops based on Docker persistently pays and automated system and method
CN107247601A (en) * 2017-07-04 2017-10-13 武汉斗鱼网络科技有限公司 Development process optimization method, device and storage medium
CN108363587A (en) * 2018-03-07 2018-08-03 平安普惠企业管理有限公司 Application program operation and monitoring method, device, computer equipment and storage medium
CN108958753A (en) * 2018-07-13 2018-12-07 中国银行股份有限公司 A kind of code is packaged dispositions method and device
CN109408106A (en) * 2018-09-27 2019-03-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Agile software development continuous integration method and system
CN109408382A (en) * 2018-10-11 2019-03-01 网宿科技股份有限公司 A kind of continuous integrating method and continuous integration system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150135166A1 (en) * 2013-11-12 2015-05-14 Microsoft Corporation Source code generation, completion, checking, correction
CN104199667A (en) * 2014-09-10 2014-12-10 南靖万利达科技有限公司 Method and system for newly establishing MTK project and submitting codes
CN105549959A (en) * 2015-12-04 2016-05-04 小米科技有限责任公司 Compiling inspection method and device
CN106873975A (en) * 2016-12-30 2017-06-20 武汉默联股份有限公司 Devops based on Docker persistently pays and automated system and method
CN107247601A (en) * 2017-07-04 2017-10-13 武汉斗鱼网络科技有限公司 Development process optimization method, device and storage medium
CN108363587A (en) * 2018-03-07 2018-08-03 平安普惠企业管理有限公司 Application program operation and monitoring method, device, computer equipment and storage medium
CN108958753A (en) * 2018-07-13 2018-12-07 中国银行股份有限公司 A kind of code is packaged dispositions method and device
CN109408106A (en) * 2018-09-27 2019-03-01 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Agile software development continuous integration method and system
CN109408382A (en) * 2018-10-11 2019-03-01 网宿科技股份有限公司 A kind of continuous integrating method and continuous integration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙恒一;段琳;: "基于源代码持续集成的研发项目管理应用研究", 数字技术与应用, no. 12 *
田勇;: "DevOps开发运维管理探析", 金融科技时代, no. 06 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727457A (en) * 2019-08-30 2020-01-24 平安证券股份有限公司 Component management method, device, storage medium and electronic equipment
CN110727457B (en) * 2019-08-30 2024-06-21 平安证券股份有限公司 Component management method and device, storage medium and electronic equipment
CN111078193A (en) * 2019-12-11 2020-04-28 镇江新一代信息技术产业研究院有限公司 Software development method and system for data analysis system
CN111752572A (en) * 2020-06-29 2020-10-09 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN111752572B (en) * 2020-06-29 2023-03-14 百度在线网络技术(北京)有限公司 Compiling method, device, equipment and storage medium
CN112181403A (en) * 2020-09-27 2021-01-05 北京浪潮数据技术有限公司 Development, operation and maintenance integration realization method, device and equipment and readable storage medium
CN112181403B (en) * 2020-09-27 2023-12-22 北京浪潮数据技术有限公司 Development operation and maintenance integrated implementation method, device, equipment and readable storage medium
CN112394949B (en) * 2020-12-03 2022-04-22 中国科学院软件研究所 Service version dynamic configuration method for continuous integration
CN112394949A (en) * 2020-12-03 2021-02-23 中国科学院软件研究所 Service version dynamic configuration method for continuous integration
CN113094711A (en) * 2021-04-30 2021-07-09 云南电网有限责任公司 Open source code detection method and system based on staged project development
CN113485743A (en) * 2021-07-19 2021-10-08 上汽通用五菱汽车股份有限公司 CDH operation configuration method based on source code management and readable storage medium
CN113741903A (en) * 2021-09-18 2021-12-03 中国银行股份有限公司 Automatic product packaging method and system
CN114115982A (en) * 2021-12-02 2022-03-01 建信金融科技有限责任公司 Code issuing method, device, equipment and storage medium
CN114327478A (en) * 2021-12-27 2022-04-12 海信集团控股股份有限公司 Automatic application program delivery method and device

Similar Documents

Publication Publication Date Title
CN110058860A (en) A kind of automatic delivery method of code, device, equipment and computer storage medium
US8954453B2 (en) On-demand database service system and method for determining whether a developed application will operate properly with at least one other application
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US9092239B2 (en) Configuring user interfaces in electronic devices
JP2001521254A (en) Mobile device application installation management system and method
US20100313182A1 (en) Extensible user interface generation
CN102667730A (en) Design time debugging
US20050268280A1 (en) Encapsulating changes to a software application
CN107577609B (en) Embedded system dynamic module debugging system based on host end dynamic link
CN106796521B (en) API version control independent of product release
WO2017213846A1 (en) Automating feature graduation
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN110007926B (en) Language conversion method and device
CN111382044A (en) Positioning method and positioning device for performance bottleneck, electronic equipment and storage medium
US8126931B2 (en) Method and apparatus for displaying the composition of a data structure during runtime
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
CN109240696A (en) A kind of Oftware updating method and device
CN116298340A (en) Product defect detection method and system based on task scheduling
US8146109B2 (en) Version resiliency for a host application and custom code
JP4049099B2 (en) Resource adapter enhancements
CN110334031A (en) Memory Allocation code detection method, device, computer equipment and storage medium
KR20130020135A (en) System and method of providing the developer list of developing code simultaneously in an integrated development environment
CN114020414A (en) Symbiotic method and device of Android system and bottom layer Linux, electronic equipment and storage medium
CN111459933A (en) GDB data dynamic expansion method, device and storage medium

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240227

AD01 Patent right deemed abandoned