[go: up one dir, main page]

CN112148269A - Research and development continuous integration method and device, computer equipment and storage medium - Google Patents

Research and development continuous integration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112148269A
CN112148269A CN202011138926.9A CN202011138926A CN112148269A CN 112148269 A CN112148269 A CN 112148269A CN 202011138926 A CN202011138926 A CN 202011138926A CN 112148269 A CN112148269 A CN 112148269A
Authority
CN
China
Prior art keywords
development
task
continuous integration
content
integration
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
CN202011138926.9A
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.)
Shenzhen Sixun Software Co ltd
Original Assignee
Shenzhen Sixun Software 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 Shenzhen Sixun Software Co ltd filed Critical Shenzhen Sixun Software Co ltd
Priority to CN202011138926.9A priority Critical patent/CN112148269A/en
Publication of CN112148269A publication Critical patent/CN112148269A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention relates to a research and development continuous integration method, a device, computer equipment and a storage medium, wherein the method comprises the steps of obtaining a continuous integration task; editing the script according to the continuous integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content; extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result; when the test result is qualified, the development content is produced and deployed; and collecting and analyzing the operation data after production deployment, and storing the operation data in a database. In the invention, kubernets and dockers are adopted in the development process to solve cross-language and multi-service automatic management, one-key release is realized, and the software development efficiency is improved in the whole integration process.

Description

Research and development continuous integration method and device, computer equipment and storage medium
Technical Field
The present invention relates to computers, and more particularly, to a method, an apparatus, a computer device, and a storage medium for developing persistent integration.
Background
In the process of platform development or software development, multiple parts are required to be coordinated and completed together, but each part has different specialties and abilities, unsmooth communication and cooperation are easy to achieve, and the problem of micro-service technology architecture is more obvious as the complexity of a project is increased.
At present, continuous integration is adopted in most companies for integration of work so as to reduce problems caused by integration and accelerate the development speed of team cooperation software, but at present, the problems of high integration difficulty and the like caused by different conditions of versions, configurations and the like of adopted tools still exist in the continuous integration, and further the software research and development efficiency is low.
Therefore, it is necessary to design a new method to improve the software development efficiency.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a research and development continuous integration method, a device, a computer device and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: developing a continuous integration method comprising:
acquiring a continuous integration task;
editing the script according to the continuous integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content;
extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result;
when the test result is qualified, the development content is produced and deployed;
and collecting and analyzing the operation data after production deployment, and storing the operation data in a database.
The further technical scheme is as follows: the acquiring of the continuous integration task comprises the following steps:
and acquiring the category of the task, and creating the published version number and the corresponding published content to obtain the continuous integration task.
The further technical scheme is as follows: the editing of the script according to the continuous integration task, the pulling of the relevant source codes in the script, and the release of the relevant source codes to the development integration environment for development to obtain development content includes:
setting a delivery environment according to the continuous integration task;
configuring a source code management tool;
identifying a development language corresponding to the continuous integration task;
compiling the source codes according to the continuous integration task to pull the relevant source codes in the script;
producing an application mirror image;
and arranging the containers to obtain a development integration environment, and issuing related source codes to the development integration environment for development to obtain development contents.
The further technical scheme is as follows: the extracting the service mirror image from the development content and deploying the service mirror image into a test environment for testing to obtain a test result includes:
and auditing the development content by using an auditing mechanism, extracting a service image from the development content, and deploying the service image into a testing environment for testing to obtain a testing result.
The further technical scheme is as follows: when the test result is qualified, the development content is produced and deployed, and the method comprises the following steps:
and when the test result is qualified, extracting the release template, and carrying out production deployment on the development content according to the release template.
The further technical scheme is as follows: the release template comprises a test arrangement template, a pre-production arrangement template and a production arrangement template.
The invention also provides a research and development continuous integration device, which comprises:
the task acquisition unit is used for acquiring the continuous integration task;
the development unit is used for editing the script according to the continuous integration task, pulling the related source codes in the script and issuing the related source codes to a development integration environment for development so as to obtain development content;
the testing unit is used for extracting a service mirror image from the development content and deploying the service mirror image into a testing environment for testing to obtain a testing result;
the production deployment unit is used for producing and deploying the development content when the test result is qualified;
and the operation processing unit is used for collecting and analyzing the operation data after production deployment and storing the operation data in the database.
The further technical scheme is as follows: the task obtaining unit is used for obtaining the task type and creating the published version number and the corresponding published content to obtain the continuous integration task.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the method, the continuous integration task is obtained, development is carried out according to the task, the developed content is tested, production deployment is carried out after the test is qualified, corresponding operation data is collected in real time for analysis and storage aiming at the operation after the production deployment, kubernets and dockers are adopted in the development process to solve the problem of cross-language and multi-service automatic management, one-key release is realized, and the software research and development efficiency is improved in the whole integration process.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a continuous integration method for research and development according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for developing continuous integration according to an embodiment of the present invention;
FIG. 3 is a schematic sub-flow chart of a method for developing persistent integration according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a development and sustained integration apparatus provided by an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a development unit for developing a persistent integration apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a development and continuous integration method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a method for developing continuous integration according to an embodiment of the present invention. The development continuous integration method is applied to the server. The server and the terminal carry out data interaction, and the content integrated by the server is displayed on the terminal for the user to use.
Fig. 2 is a schematic flow chart of a method for developing continuous integration according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S150.
And S110, acquiring a continuous integration task.
In this embodiment, the persistent integration task refers to a task of product integration, and generally includes a type of a product, a task requirement, a version number, a release content, and the like, where the release content refers to a content that the product needs to be presented on a terminal.
Specifically, the category of the task is obtained, and the published version number and the corresponding published content are created to obtain the continuous integration task.
Selecting task classification when continuous integration is carried out, and completing task entry; confirming the task, automatically creating a release version number, wherein the version number corresponds to release content, change basis, source code version creation, gray release, task change and the like.
Specifically, the process of establishing the version number can be entered by confirming the task after the preset task template and the task are classified.
And S120, editing the script according to the continuous integration task, pulling the related source codes in the script, and issuing the related source codes to a development integration environment for development to obtain development content.
In this embodiment, the development content refers to the content of a product developed, and is generally a software package. In the development process, the method generally comprises the steps of building a whole product framework, decomposing a continuous integration task, developing respective units, testing each unit, and finally performing integration self-testing and front-end self-testing.
In an embodiment, referring to fig. 3, the step S120 may include steps S121 to S126.
And S121, setting a delivery environment according to the continuous integration task.
In this embodiment, the delivery environment refers to a continuous delivery environment under the micro service architecture.
And S122, configuring a source code management tool.
In this embodiment, first, a source code management tool is selected, and authorization registration is performed to configure the source code management tool.
And S123, identifying a development language corresponding to the continuous integration task.
In the present embodiment, first, the feature value of the development language is identified according to the item list of the acquisition persistent integration task, thereby determining the development language.
And S124, compiling the source codes according to the continuous integration task to pull the relevant source codes in the script.
In this embodiment, jenkins is used to write different scripts such as shell, window batch processing, etc., and the relevant source codes of git and svn are automatically pulled.
Specifically, a tool chain is obtained, a compiling container is generated, the compiling container is issued into a container compiling cluster, source codes are pulled from compiled contents after compiling is carried out, single-server health check and single-service unit testing are carried out, and integration of a third-party testing tool is executed.
And S125, producing an application mirror image.
In this embodiment, executable files corresponding to the source code are copied, and an application image is generated according to the files.
And S126, arranging the containers to obtain a development integration environment, and issuing the related source codes to the development integration environment for development to obtain development contents.
Specifically, a cluster publishing template is obtained, integrated monitoring is carried out, micro-service integrated health monitoring and cluster unit testing are carried out, and finally a third-party testing tool is integrated, so that content development is facilitated.
And the method is automatically released to a development integration environment, so that errors caused by artificial integration are avoided. By adopting kubernets and docker, developers can release the micro services only by one key of an interface, and the micro services are in butt joint management by adopting a self-built DNS and a configuration management center. And the service is automatically accessed through rules, horizontal dynamic expansion is completed, and dynamic access of various middleware and databases such as mongodb, mq, redis, sqlserver, mysql and the like is supported.
And S130, extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result.
In this embodiment, the test result refers to whether the development content can pass the test of the related attributes such as automation, function, performance, and security.
During testing, a test case needs to be set for performing functional testing, automated testing, performance testing and safety testing.
Specifically, the development content is audited by using an auditing mechanism, a service image is extracted from the development content, and the service image is deployed into a testing environment for testing to obtain a testing result.
The auditing mechanism comprises auditing of a release test environment, auditing of a release pre-production environment, auditing of a release production environment and the like.
After the development is completed, a test flow can be entered, the server can extract the service image which passes the self-test according to the version number and deploy the service image to a test environment, and the problem that the running environment problem causes the corresponding problem is avoided. The completion of the test environment construction will send a nail message to inform the relevant test personnel. The tester compiles the automatic test script through the platform interface, and the performance and safety script verifies the program. The verification function can also be accessed manually through the intranet domain name.
Research, development and delivery tests are carried out, because few problems are generated in deployment environment, the problems of some environments exist in the first configuration of the mirror image, and the BUG repair is mainly aimed at in the follow-up process; the test does not need to care about the implementation mode of development, the desired effect can be achieved by writing a general automatic script and performance pressure test, and the research and development efficiency is improved.
And S140, when the test result is qualified, the development content is produced and deployed.
In this embodiment, when the test result is qualified, the release template is extracted, and the development content is produced and deployed according to the release template.
The production deployment comprises canary deployment, gray release, blue-green deployment, smooth upgrade, cluster disaster tolerance and fusing current limiting, firstly, partial contents are released to the terminal according to actual requirements, when the terminal is used or other conditions meet preset requirements, other contents are gradually released, and certainly, all contents can be released according to the actual requirements.
Specifically, the release template comprises a test arrangement template, a pre-production arrangement template and a production arrangement template.
In the production deployment process, flow management is realized through the istio and a preset configuration center. Thereby realizing gray release, arrangement of the golden sparrows, disaster tolerance and current limitation, and the like. And completing application cluster construction by using kubernets and dockers, managing the application clusters and the middleware by using a configuration center, and communicating databases. The groylog of the log system adopts unified collection, partition management and regular backup.
And S150, collecting and analyzing the operation data after production deployment, and storing the operation data in a database.
In this embodiment, data collection supports the server to dynamically expand offline collection fields through sixunmm. apk, a basic data summary report tool is provided, and data complex analysis and extraction data warehouse processing are performed. The method can be implemented according to preset general operation tools: voting, grouping, killing, etc. may be embedded into the system for use.
The whole operation process comprises the steps of collecting data, analyzing and forming a data report, carrying out cost optimization and data decision according to the data report, and also can be used for arranging some operation activities.
In the face of the rapid iteration of timely response and operation schemes of product demands, the quality of each link is guaranteed in the whole delivery process, the online risk of change is reduced to the minimum, and an automatic solution is provided.
The operator does not need to research, develop, modify and add the field and reissue the field to be online. The new information can be acquired to verify operation decision, corresponding efficiency can be improved, the product research and development process is carried out in a continuous integration mode, the whole research and development efficiency can be improved, the delivery environment is set, a product manager can intervene in each stage in advance to complete version and check and accept, meanwhile, whether the product functions concerned by the manager are configured or not is seen through an online system, and personnel assessment data can be provided through process research and development records and developer submission conditions. Adopts kubernets and docker to solve cross-language and multi-service automatic management. And subsequent modification, upgrading and addition of automatic compiling, releasing and automatic testing, wherein the required version of project delivery management corresponds to the required version, and a continuous integration solution is gradually formed by dynamically expanding the operation data.
In addition, the following related contents need to be configured in the background of the server: the system comprises multiple environment information, a release environment, a source code management tool account password, a source code management tool address, a source code management tool configuration, a language characteristic value configuration, a tool chain relation, a tool chain mirror image, container cluster resource isolation, stateful service and container resources. Setting a resource template, an auditing link, authority setting of an auditor and the like.
According to the research and development continuous integration method, the continuous integration task is obtained, development is carried out according to the task, the developed content is tested, production deployment is carried out after the test is qualified, corresponding operation data is collected in real time for analysis and storage aiming at operation after the production deployment, kubernets and dockers are adopted in the development process to solve cross-language and multi-service automatic management, one-key release is realized, and the whole integration process realizes improvement of software research and development efficiency.
Fig. 4 is a schematic block diagram of a development and continuous integration apparatus 300 according to an embodiment of the present invention. As shown in fig. 4, the present invention also provides a development and continuous integration apparatus 300 corresponding to the above development and continuous integration method. The development and continued integration apparatus 300 includes a unit for performing the development and continued integration method described above, and may be configured in a server. Specifically, referring to fig. 4, the development and continuous integration apparatus 300 includes a task obtaining unit 301, a development unit 302, a testing unit 303, a production deployment unit 304, and an operation processing unit 305.
A task obtaining unit 301, configured to obtain a persistent integration task; the development unit 302 is configured to edit the script according to the persistent integration task, pull the relevant source codes in the script, and issue the relevant source codes to a development integration environment for development to obtain development content; the testing unit 303 is configured to extract a service mirror from the development content, and deploy the service mirror into a testing environment to perform testing to obtain a testing result; the production deployment unit 304 is used for producing and deploying the development content when the test result is qualified; and the operation processing unit 305 is configured to collect and analyze operation data after production deployment, and store the operation data in the database.
In an embodiment, the task obtaining unit 301 is configured to obtain a category of a task, and create a release version number and corresponding release content to obtain a persistent integration task.
In one embodiment, as shown in fig. 5, the development unit 302 includes a delivery environment setting subunit 3021, a tool configuration subunit 3022, a language identification subunit 3023, a compiling subunit 3024, a mirror image production subunit 3025, and a container arrangement subunit 3026.
A delivery environment setting subunit 3021 configured to set a delivery environment according to the persistent integration task; a tool configuration subunit 3022 configured to configure a source code management tool; a language identification subunit 3023, configured to identify a development language corresponding to the persistent integration task; a compiling subunit 3024, configured to compile a source code according to the persistent integration task to pull a relevant source code in a script; a mirror image production subunit 3025 for producing an application mirror image; and the container arrangement subunit 3026 is configured to arrange the containers to obtain a development integration environment, and issue the related source codes to the development integration environment for development to obtain development contents.
In an embodiment, the testing unit 303 is configured to audit the development content by using an audit mechanism, extract a service image from the development content, and deploy the service image into a testing environment for testing to obtain a testing result.
In an embodiment, the production deployment unit 304 is configured to, when the test result is qualified, extract the release template, and perform production deployment on the development content according to the release template.
It should be noted that, as will be clear to those skilled in the art, the specific implementation processes of the development of the continuous integration apparatus 300 and the units may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The development and continuous integration apparatus 300 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 6, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of developing persistent integration.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to perform a method for developing persistent integration.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring a continuous integration task; editing the script according to the continuous integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content; extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result; when the test result is qualified, the development content is produced and deployed; and collecting and analyzing the operation data after production deployment, and storing the operation data in a database.
In an embodiment, when the processor 502 implements the step of acquiring the persistent integration task, the following steps are specifically implemented:
and acquiring the category of the task, and creating the published version number and the corresponding published content to obtain the continuous integration task.
In an embodiment, when the processor 502 implements the steps of performing script editing according to the persistent integration task, pulling related source codes in the script, and issuing the related source codes to the development integration environment for development to obtain development content, the following steps are specifically implemented:
setting a delivery environment according to the continuous integration task; configuring a source code management tool; identifying a development language corresponding to the continuous integration task; compiling the source codes according to the continuous integration task to pull the relevant source codes in the script; producing an application mirror image; and arranging the containers to obtain a development integration environment, and issuing related source codes to the development integration environment for development to obtain development contents.
In an embodiment, when the processor 502 implements the step of extracting the service image from the development content and deploying the service image into a test environment for testing to obtain a test result, the following steps are specifically implemented:
and auditing the development content by using an auditing mechanism, extracting a service image from the development content, and deploying the service image into a testing environment for testing to obtain a testing result.
In an embodiment, when implementing the step of performing production deployment on the development content when the test result is qualified, the processor 502 specifically implements the following steps:
and when the test result is qualified, extracting the release template, and carrying out production deployment on the development content according to the release template.
The release template comprises a test arrangement template, a pre-production arrangement template and a production arrangement template.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
acquiring a continuous integration task; editing the script according to the continuous integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content; extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result; when the test result is qualified, the development content is produced and deployed; and collecting and analyzing the operation data after production deployment, and storing the operation data in a database.
In an embodiment, when the step of obtaining the persistent integration task is implemented by the processor executing the computer program, the following steps are specifically implemented:
and acquiring the category of the task, and creating the published version number and the corresponding published content to obtain the continuous integration task.
In an embodiment, when the processor executes the computer program to implement the steps of editing the script according to the persistent integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content, the following steps are specifically implemented:
setting a delivery environment according to the continuous integration task; configuring a source code management tool; identifying a development language corresponding to the continuous integration task; compiling the source codes according to the continuous integration task to pull the relevant source codes in the script; producing an application mirror image; and arranging the containers to obtain a development integration environment, and issuing related source codes to the development integration environment for development to obtain development contents.
In an embodiment, when the processor executes the computer program to implement the step of extracting the service image from the development content and deploying the service image into a test environment for testing to obtain a test result, the following steps are specifically implemented:
and auditing the development content by using an auditing mechanism, extracting a service image from the development content, and deploying the service image into a testing environment for testing to obtain a testing result.
In an embodiment, when the processor executes the computer program to implement the step of performing production deployment on the development content when the test result is qualified, the following steps are specifically implemented:
and when the test result is qualified, extracting the release template, and carrying out production deployment on the development content according to the release template.
The release template comprises a test arrangement template, a pre-production arrangement template and a production arrangement template.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. Developing a continuous integration method, comprising:
acquiring a continuous integration task;
editing the script according to the continuous integration task, pulling relevant source codes in the script, and issuing the relevant source codes to a development integration environment for development to obtain development content;
extracting a service mirror image from the development content, and deploying the service mirror image into a test environment for testing to obtain a test result;
when the test result is qualified, the development content is produced and deployed;
and collecting and analyzing the operation data after production deployment, and storing the operation data in a database.
2. The method for developing continuous integration according to claim 1, wherein the acquiring of the continuous integration task comprises:
and acquiring the category of the task, and creating the published version number and the corresponding published content to obtain the continuous integration task.
3. The method for developing continuous integration according to claim 1, wherein the editing a script according to the continuous integration task, pulling relevant source codes in the script, and releasing the relevant source codes to a development integration environment for development to obtain development content comprises:
setting a delivery environment according to the continuous integration task;
configuring a source code management tool;
identifying a development language corresponding to the continuous integration task;
compiling the source codes according to the continuous integration task to pull the relevant source codes in the script;
producing an application mirror image;
and arranging the containers to obtain a development integration environment, and issuing related source codes to the development integration environment for development to obtain development contents.
4. The research and development continuous integration method of claim 1, wherein the extracting a service image from the development content and deploying the service image into a test environment for testing to obtain a test result comprises:
and auditing the development content by using an auditing mechanism, extracting a service image from the development content, and deploying the service image into a testing environment for testing to obtain a testing result.
5. The research and development continuous integration method of claim 1, wherein when the test result is qualified, the production and deployment of the development content are performed, and the method comprises the following steps:
and when the test result is qualified, extracting the release template, and carrying out production deployment on the development content according to the release template.
6. The research and development continuous integration method of claim 5, wherein the release templates comprise a test orchestration template, a pre-production orchestration template, and a production orchestration template.
7. Developing a continuously integrated device, comprising:
the task acquisition unit is used for acquiring the continuous integration task;
the development unit is used for editing the script according to the continuous integration task, pulling the related source codes in the script and issuing the related source codes to a development integration environment for development so as to obtain development content;
the testing unit is used for extracting a service mirror image from the development content and deploying the service mirror image into a testing environment for testing to obtain a testing result;
the production deployment unit is used for producing and deploying the development content when the test result is qualified;
and the operation processing unit is used for collecting and analyzing the operation data after production deployment and storing the operation data in the database.
8. The apparatus of claim 7, wherein the task obtaining unit is configured to obtain a category of a task, and create a release version number and corresponding release content to obtain the persistent integration task.
9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 6.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202011138926.9A 2020-10-22 2020-10-22 Research and development continuous integration method and device, computer equipment and storage medium Pending CN112148269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011138926.9A CN112148269A (en) 2020-10-22 2020-10-22 Research and development continuous integration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011138926.9A CN112148269A (en) 2020-10-22 2020-10-22 Research and development continuous integration method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112148269A true CN112148269A (en) 2020-12-29

Family

ID=73954541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011138926.9A Pending CN112148269A (en) 2020-10-22 2020-10-22 Research and development continuous integration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148269A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699041A (en) * 2021-01-04 2021-04-23 中车青岛四方车辆研究所有限公司 Automatic deployment method, system and equipment for embedded software
CN112732561A (en) * 2020-12-31 2021-04-30 武汉悦学帮网络技术有限公司 Project deployment method and device, computer equipment and storage medium
CN112788029A (en) * 2021-01-11 2021-05-11 河北志晟信息技术股份有限公司 Method and system for publishing computer program product
CN113094081A (en) * 2021-04-06 2021-07-09 中国工商银行股份有限公司 Software distribution method, device, computer system and computer readable storage medium
CN115034095A (en) * 2022-08-10 2022-09-09 国网江苏省电力有限公司信息通信分公司 Sensitive state research and development simulation system
CN115469882A (en) * 2022-09-16 2022-12-13 上海百胜软件股份有限公司 Software project management method and device, electronic equipment and storage medium
CN118228277A (en) * 2024-04-12 2024-06-21 天创信用服务有限公司 A code release strategy optimization method based on risk assessment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052333A (en) * 2017-12-11 2018-05-18 北京紫优能源科技有限公司 A kind of power scheduling centralized control system standardization Automation arranging method and framework
CN109614108A (en) * 2018-10-31 2019-04-12 武汉艺果互动科技股份有限公司 A kind of project Automation arranging method based on Docker, equipment and storage equipment
CN109947452A (en) * 2019-03-26 2019-06-28 南京联创信息科技有限公司 A kind of Kubernetes container platform application update method
CN111190690A (en) * 2019-12-25 2020-05-22 中科曙光国际信息产业有限公司 Intelligent training device based on container orchestration tool
CN111198814A (en) * 2019-12-23 2020-05-26 曙光信息产业(北京)有限公司 An Acceptance System for Continuous Integration and Continuous Delivery
US10691436B1 (en) * 2018-06-28 2020-06-23 Atlassian Pty Ltd Systems and methods for tracking source code deployments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052333A (en) * 2017-12-11 2018-05-18 北京紫优能源科技有限公司 A kind of power scheduling centralized control system standardization Automation arranging method and framework
US10691436B1 (en) * 2018-06-28 2020-06-23 Atlassian Pty Ltd Systems and methods for tracking source code deployments
CN109614108A (en) * 2018-10-31 2019-04-12 武汉艺果互动科技股份有限公司 A kind of project Automation arranging method based on Docker, equipment and storage equipment
CN109947452A (en) * 2019-03-26 2019-06-28 南京联创信息科技有限公司 A kind of Kubernetes container platform application update method
CN111198814A (en) * 2019-12-23 2020-05-26 曙光信息产业(北京)有限公司 An Acceptance System for Continuous Integration and Continuous Delivery
CN111190690A (en) * 2019-12-25 2020-05-22 中科曙光国际信息产业有限公司 Intelligent training device based on container orchestration tool

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟磊: "《软件质量与测试》", 31 March 2015, 西安电子科技大学出版社 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732561A (en) * 2020-12-31 2021-04-30 武汉悦学帮网络技术有限公司 Project deployment method and device, computer equipment and storage medium
CN112699041A (en) * 2021-01-04 2021-04-23 中车青岛四方车辆研究所有限公司 Automatic deployment method, system and equipment for embedded software
CN112699041B (en) * 2021-01-04 2024-03-26 中车青岛四方车辆研究所有限公司 Automatic deployment method, system and equipment for embedded software
CN112788029A (en) * 2021-01-11 2021-05-11 河北志晟信息技术股份有限公司 Method and system for publishing computer program product
CN113094081A (en) * 2021-04-06 2021-07-09 中国工商银行股份有限公司 Software distribution method, device, computer system and computer readable storage medium
CN113094081B (en) * 2021-04-06 2024-03-01 中国工商银行股份有限公司 Software release method, device, computer system and computer readable storage medium
CN115034095A (en) * 2022-08-10 2022-09-09 国网江苏省电力有限公司信息通信分公司 Sensitive state research and development simulation system
CN115034095B (en) * 2022-08-10 2022-11-04 国网江苏省电力有限公司信息通信分公司 Sensitive state research and development simulation system
CN115469882A (en) * 2022-09-16 2022-12-13 上海百胜软件股份有限公司 Software project management method and device, electronic equipment and storage medium
CN118228277A (en) * 2024-04-12 2024-06-21 天创信用服务有限公司 A code release strategy optimization method based on risk assessment

Similar Documents

Publication Publication Date Title
CN112148269A (en) Research and development continuous integration method and device, computer equipment and storage medium
US9477581B2 (en) Integrated system and method for validating the functionality and performance of software applications
US8074204B2 (en) Test automation for business applications
US8091066B2 (en) Automated multi-platform build and test environment for software application development
JP4961123B2 (en) Automated test case validation loosely coupled with respect to automated test case execution
JP7743403B2 (en) Unit testing components of the data flow graph
EP2245551B1 (en) Identification of elements of currently-executing component script
CA3131079A1 (en) Test case generation method and device, computer equipment and storage medium
US11074162B2 (en) System and a method for automated script generation for application testing
US20080086627A1 (en) Methods and apparatus to analyze computer software
JP2010231782A (en) Method and system for function automation
US20020116153A1 (en) Test automation framework
CN112131116B (en) Automatic regression testing method for embedded software
CN112148614A (en) Regression testing method and device
CN118860881A (en) Test case management system, method and storage medium based on AI model
CN107480050A (en) A kind of method of testing of automatic test renewal bag
CN119537213A (en) A method for interface automation testing based on RPA
CN119166531A (en) Disk array card firmware integration test method, terminal and storage medium
CN102253829A (en) Rule merging in system for monitoring adherence by developers to a software code development process
JP7215501B2 (en) DEPENDENCY DETECTION DEVICE AND DEPENDENCY DETECTION METHOD
JP7686540B2 (en) GENERATION DEVICE, GENERATION METHOD, AND PROGRAM
CN116660673A (en) Server production test method, device, electronic equipment and storage medium
CN113094267B (en) Test result collection method and device
CN114327588B (en) A code submission log processing method and device
JP6397800B2 (en) Test support system and test support method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201229