CN111679832A - Tool assembly integration method and device based on DevOps platform - Google Patents

Tool assembly integration method and device based on DevOps platform Download PDF

Info

Publication number
CN111679832A
CN111679832A CN202010494413.5A CN202010494413A CN111679832A CN 111679832 A CN111679832 A CN 111679832A CN 202010494413 A CN202010494413 A CN 202010494413A CN 111679832 A CN111679832 A CN 111679832A
Authority
CN
China
Prior art keywords
integrated
tool
tool component
information
configuration information
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
CN202010494413.5A
Other languages
Chinese (zh)
Other versions
CN111679832B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010494413.5A priority Critical patent/CN111679832B/en
Publication of CN111679832A publication Critical patent/CN111679832A/en
Application granted granted Critical
Publication of CN111679832B publication Critical patent/CN111679832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a tool assembly integration method and a device based on a DevOps platform, wherein the method comprises the following steps: receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, wherein the uniform interface is used for calling different tool components; calling the tool component to be integrated according to the configuration information of the tool component to be integrated; and reading log data generated in the calling process of the tool component to be integrated. The invention has simple operation, high operation efficiency and strong expandability.

Description

Tool assembly integration method and device based on DevOps platform
Technical Field
The invention relates to the technical field of computers, in particular to a tool assembly integration method and device based on a DevOps platform.
Background
In the current digital age, the introduction of DevOps, a collective term for a set of processes, methods and systems for facilitating communication, collaboration and integration between development (application/software engineering), technology operations and Quality Assurance (QA) departments, can have profound effects on product delivery, testing, functional development and maintenance. Different products have different tool components in compiling, constructing, testing, code reviewing, deploying and other links. Particularly, in the banking industry, development lines with various characteristics such as COBOL, CSPS, PLSQL and the like exist, and many tools are developed autonomously, so that all tool assemblies cannot be completely integrated on one platform, and each time one tool assembly is added, a platform version needs to be modified, and the development lines are complex in operation, low in operation efficiency and lack of expandability.
Disclosure of Invention
The embodiment of the invention provides a tool assembly integration method based on a DevOps platform, which has the advantages of simple operation, high working efficiency and strong expandability, and the method comprises the following steps:
receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, wherein the uniform interface is used for calling different tool components;
calling the tool component to be integrated according to the configuration information of the tool component to be integrated;
and reading log data generated in the calling process of the tool component to be integrated.
Optionally, the method further includes:
and analyzing the log data and outputting the log data in a formatted mode.
Optionally, the configuration information includes: tool component name information, tool component source information, log structure information.
Optionally, the method further includes:
receiving an inquiry instruction input from the outside;
and feeding back the running information of the tool assembly to be integrated according to the query instruction.
The embodiment of the invention also provides a tool assembly integration device based on the DevOps platform, which has simple operation, high working efficiency and strong expandability, and the device comprises:
the system comprises a configuration information receiving module, a configuration information processing module and a configuration information processing module, wherein the configuration information receiving module is used for receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, and the uniform interface is used for calling different tool components;
the tool component calling module is used for calling the tool component to be integrated according to the configuration information of the tool component to be integrated;
and the log data reading module is used for reading the log data generated in the calling process of the tool component to be integrated.
Optionally, the apparatus further comprises:
and the data analysis module is used for analyzing the log data and outputting the log data in a formatted mode.
Optionally, the configuration information includes: tool component name information, tool component source information, log structure information.
Optionally, the apparatus further comprises:
the instruction receiving module is used for receiving an inquiry instruction input from the outside;
and the information feedback module is used for feeding back the operation information of the tool assembly to be integrated according to the query instruction.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the above method is stored.
In the embodiment of the invention, the configuration information of the tool assembly to be integrated is received through the uniform interface provided by the DevOps platform, the tool assembly to be integrated is called according to the configuration information of the tool assembly to be integrated, the log data generated in the calling process of the tool assembly to be integrated is read, the calling of the tool assembly to be integrated on the DevOps platform is realized while the fast integration of different tool assemblies to be integrated on the DevOps platform is realized, the whole process is simple to operate, the working efficiency is high, and the expandability is strong.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flow chart of a tool assembly integration method based on a DevOps platform in an embodiment of the present invention;
FIG. 2 is a further flowchart of a tool assembly integration method based on a DevOps platform in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating querying information about the operation of a tool component to be integrated according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a tool assembly integration device based on a DevOps platform according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another structure of a tool assembly integration device based on a DevOps platform according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for querying operation information of a tool component to be integrated according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
Fig. 1 is a flowchart of a tool component integration method based on a DevOps platform according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, wherein the uniform interface is used for calling different tool components.
The unified interface is configured, so that different tool components to be integrated can be called, executed data can be read, and in specific implementation, input parameters of the unified interface can be tool component name information and tool component source information, and output parameters can be log structure information and return code information.
In specific implementation, when a certain tool assembly needs to be integrated on the DevOps platform, the tool assembly only needs to be integrated on the DevOps platform through the unified interface, and when the tool assembly is not needed, the related parameters of the tool assembly only needs to be deleted on the DevOps platform.
And 102, calling the tool component to be integrated according to the configuration information of the tool component to be integrated.
In this embodiment, the DevOps platform can perform the work of calling different tools, log parsing, etc. through the engine.
The configuration information includes: tool component name information, tool component source information, log structure information.
In specific implementation, taking a tool component to be integrated as a code review tool as an example, the name, the component source, a front-end information Id (which Id needs configuration parameters for querying the front end of the tool in a front-end information configuration table), a log structure Id (which Id queries the structure of a tool operation log in a log information configuration table so as to facilitate platform analysis), a return result Id (which Id queries the return information represented by the return code and success or failure for configuration in a return result table), and a quality index Id (which Id queries a quality index generated by the operation of the tool in a quality index configuration table so as to facilitate quality control of the platform) of the code review tool need to be configured.
Wherein, the code review tool component basic information configuration table is as follows:
TABLE 1
Component name Component source Front end information id Log structure id Return result id Quality index id
Code review Autonomic development 101 101 101 101
The front-end information configuration table is as follows 2:
TABLE 2
Front end information id Parameter name Type (B) Value range
101 Developing languages Enumeration Java,Cobol
The DevOps platform can dynamically generate a front-end interface of the tool, which needs to input contents, at the front end according to the table.
The log information configuration table is as follows 3:
TABLE 3
Figure BDA0002522240420000041
The DevOps platform can perform log analysis according to the table, and display the running log of the tool for the user.
The returned result information configuration table is as follows table 4:
TABLE 4
Return result id Return code Returning information Whether or not to succeed
101 0004 ssh call failure Whether or not
The DevOps platform can timely display the operation result of the tool at the front end according to the table.
The configuration table of the returned result information is as follows 5:
TABLE 5
Quality index id Name of the index Type (B) Range of
101 Build success rate Digital type Less than 100 percent
The DevOps platform can query the quality index generated by the tool according to the table, thereby judging whether the quality requirement is met.
And 103, reading log data generated in the calling process of the tool component to be integrated.
As can be seen from fig. 1, in the tool component integration method based on the DevOps platform provided in the embodiment of the present invention, the configuration information of the tool component to be integrated is received through the unified interface provided by the DevOps platform, the tool component to be integrated is called according to the configuration information of the tool component to be integrated, log data generated in the calling process of the tool component to be integrated is read, and when different tool components to be integrated are rapidly integrated on the DevOps platform, the tool component to be integrated is called on the DevOps platform, so that the whole process is simple in operation, high in operation efficiency, and strong in expandability.
Fig. 2 is a further flowchart of a tool component integration method based on a DevOps platform according to an embodiment of the present invention, as shown in fig. 2, the method further includes:
step 201, analyzing the log data and outputting the log data in a format.
Because the user of the log data generated in the calling process of the tool component to be integrated can not directly read the meaning of the tool component to be integrated, the log data is analyzed, formatted and output, and displayed to the user, so that the problem tracking of the use of the tool component to be integrated by the user is facilitated.
Fig. 3 is a flowchart of querying operation information of a tool component to be integrated according to an embodiment of the present invention, and as shown in fig. 3, the method further includes:
step 301, receiving an inquiry instruction input from outside.
And step 302, feeding back the operation information of the tool assembly to be integrated according to the query instruction.
In this embodiment, the "operation information" may be the operation result of the tool component to be integrated, i.e. the success or failure of the operation.
When the embodiment of the invention is applied specifically, any one tool assembly is accessed into a DevOps platform for users to use, and only the following steps are needed:
packaging the tool assembly according to a uniform interface issued by a DevOps platform;
uploading the tool assembly to a designated location;
selecting the tool component when the user creates the pipeline;
the platform calls the name of the tool component to inquire the parameters and types needing to be input at the front end of the tool component, and the parameters and types are dynamically displayed at the front end for a user to input information;
a scheduling engine of the DevOps platform calls the tool assembly to run according to the interface, and simultaneously performs running log analysis according to the log configuration of the tool assembly and displays the running log at the front end of the interface in real time;
after the operation is finished, the DevOps platform obtains a return code of the operation of the tool assembly, inquires whether the operation result is successful or failed according to the configuration of the return result, and displays the operation result on the operation result of the production line.
If the assembly line is provided with the quality access control, the quality index running through the tool assembly is compared with the placket value for analysis so as to determine whether the assembly line can continue to run.
Wherein, the pipeline refers to: and executable jobs for serially connecting process tasks such as construction, deployment, testing, code review, safety scanning and the like in the running process of the DevOps platform.
Quality access control refers to: and if the threshold value of the quality index is not reached, the operation of the production line is stopped.
Based on the same inventive concept, the embodiment of the present invention further provides a tool assembly integration apparatus based on a DevOps platform, as described in the following embodiments. Since the principle of solving the problem of the tool assembly integration device based on the DevOps platform is similar to that of the tool assembly integration method based on the DevOps platform, the implementation of the tool assembly integration device based on the DevOps platform can be referred to the implementation of the tool assembly integration method based on the DevOps platform, and repeated details are omitted. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a schematic structural diagram of a DevOps platform-based tool assembly integration apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
a configuration information receiving module 401, configured to receive configuration information of a tool component to be integrated through a unified interface provided by the DevOps platform, where the unified interface is used to call different tool components.
A tool component calling module 402, configured to call the tool component to be integrated according to the configuration information of the tool component to be integrated.
A log data reading module 403, configured to read log data generated in a calling process of the tool component to be integrated.
Fig. 5 is a schematic structural diagram of another tool assembly integrating device based on a DevOps platform according to an embodiment of the present invention, and as shown in fig. 5, the device further includes:
and the data analysis module 501 is configured to analyze the log data and format and output the log data.
In this embodiment of the present invention, the configuration information includes: tool component name information, tool component source information, log structure information.
Fig. 6 is a schematic structural diagram of an apparatus for querying operation information of a tool component to be integrated according to an embodiment of the present invention, and as shown in fig. 6, the apparatus further includes:
the instruction receiving module 601 is configured to receive an externally input query instruction.
And the information feedback module 602 is configured to feed back the operation information of the tool component to be integrated according to the query instruction.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the above method is stored.
In summary, according to the tool component integration method based on the DevOps platform provided by the embodiment of the present invention, the configuration information of the tool component to be integrated is received through the unified interface provided by the DevOps platform, the tool component to be integrated is called according to the configuration information of the tool component to be integrated, log data generated in the calling process of the tool component to be integrated is read, and the calling of the tool component to be integrated on the DevOps platform is realized while different tool components to be integrated are quickly integrated on the DevOps platform.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A tool assembly integration method based on a DevOps platform is characterized by comprising the following steps:
receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, wherein the uniform interface is used for calling different tool components;
calling the tool component to be integrated according to the configuration information of the tool component to be integrated;
and reading log data generated in the calling process of the tool component to be integrated.
2. The method of claim 1, further comprising:
and analyzing the log data and outputting the log data in a formatted mode.
3. The method of claim 1, wherein the configuration information comprises: tool component name information, tool component source information, log structure information.
4. The method of claim 1, further comprising:
receiving an inquiry instruction input from the outside;
and feeding back the running information of the tool assembly to be integrated according to the query instruction.
5. A DevOps platform based tool assembly integration apparatus, comprising:
the system comprises a configuration information receiving module, a configuration information processing module and a configuration information processing module, wherein the configuration information receiving module is used for receiving configuration information of a tool component to be integrated through a uniform interface provided by a DevOps platform, and the uniform interface is used for calling different tool components;
the tool component calling module is used for calling the tool component to be integrated according to the configuration information of the tool component to be integrated;
and the log data reading module is used for reading the log data generated in the calling process of the tool component to be integrated.
6. The apparatus of claim 5, further comprising:
and the data analysis module is used for analyzing the log data and outputting the log data in a formatted mode.
7. The apparatus of claim 5, wherein the configuration information comprises: tool component name information, tool component source information, log structure information.
8. The apparatus of claim 5, further comprising:
the instruction receiving module is used for receiving an inquiry instruction input from the outside;
and the information feedback module is used for feeding back the operation information of the tool assembly to be integrated according to the query instruction.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202010494413.5A 2020-06-03 2020-06-03 Tool assembly integration method and device based on DevOps platform Active CN111679832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010494413.5A CN111679832B (en) 2020-06-03 2020-06-03 Tool assembly integration method and device based on DevOps platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010494413.5A CN111679832B (en) 2020-06-03 2020-06-03 Tool assembly integration method and device based on DevOps platform

Publications (2)

Publication Number Publication Date
CN111679832A true CN111679832A (en) 2020-09-18
CN111679832B CN111679832B (en) 2023-10-24

Family

ID=72434613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010494413.5A Active CN111679832B (en) 2020-06-03 2020-06-03 Tool assembly integration method and device based on DevOps platform

Country Status (1)

Country Link
CN (1) CN111679832B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615176A (en) * 2022-03-07 2022-06-10 中银金融科技有限公司 Message testing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6598037B1 (en) * 1999-07-26 2003-07-22 Microsoft Corporation Data table object interface for datastore
CN106126679A (en) * 2016-06-29 2016-11-16 江苏电力信息技术有限公司 A kind of exploitation O&M application process of cloud service-oriented
US20190213105A1 (en) * 2018-01-10 2019-07-11 Tata Consultancy Services Limited System and method for tool chain data capture through parser for empirical data analysis
CN110347575A (en) * 2018-04-04 2019-10-18 中移(杭州)信息技术有限公司 A kind of adjustment method based on big data component, device, terminal device and medium
CN111221591A (en) * 2019-12-27 2020-06-02 中国建设银行股份有限公司 Method, system and medium for detecting availability of micro-service deployed based on Kubernetes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6598037B1 (en) * 1999-07-26 2003-07-22 Microsoft Corporation Data table object interface for datastore
CN106126679A (en) * 2016-06-29 2016-11-16 江苏电力信息技术有限公司 A kind of exploitation O&M application process of cloud service-oriented
US20190213105A1 (en) * 2018-01-10 2019-07-11 Tata Consultancy Services Limited System and method for tool chain data capture through parser for empirical data analysis
CN110347575A (en) * 2018-04-04 2019-10-18 中移(杭州)信息技术有限公司 A kind of adjustment method based on big data component, device, terminal device and medium
CN111221591A (en) * 2019-12-27 2020-06-02 中国建设银行股份有限公司 Method, system and medium for detecting availability of micro-service deployed based on Kubernetes

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615176A (en) * 2022-03-07 2022-06-10 中银金融科技有限公司 Message testing method and device and electronic equipment

Also Published As

Publication number Publication date
CN111679832B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US20220253298A1 (en) Systems and methods for transformation of reporting schema
CN100498695C (en) Workflow schedule authoring tool
US9811325B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
US8239823B2 (en) Generating libraries for reflection without project compilation
CN102223363B (en) System and method for generating persistent sessions in a graphical interface for managing communication sessions
US20130282681A1 (en) Workflow execution model
US9262142B2 (en) Web application development tool
US7444618B2 (en) Automatic generation of batch programs with identification, insertion of invariables, declarative statements and variables with the use of place-marks
US7305652B2 (en) Standard application development template
CN115686487A (en) Business logic arrangement method and device, electronic equipment and storage medium
CN111679832A (en) Tool assembly integration method and device based on DevOps platform
Kolovos et al. The epsilon pattern language
CN110019207B (en) Data processing method and device and script display method and device
US7305653B2 (en) Standard application development framework
CN111221852A (en) Mixed query processing method and device based on big data
CN106844467B (en) Data display method and device
CN111966597A (en) Test data generation method and device
CN111221888A (en) Big data analysis system and method
CN116225902A (en) Method, device and equipment for generating test cases
CN112559339B (en) Automatic test verification method and test system based on data template engine
CN113495723A (en) Method and device for calling functional component and storage medium
CN102521133A (en) TCL (tool command language)-based white-box testing automation method and TCL-based white-box testing automation system
CN111679807B (en) Demand management method and device
CN115794056B (en) Script file processing method, device, equipment and storage medium
CN111090436B (en) Jenkins compiling result summarizing method, device and equipment

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