CN113672242A - Cooperative deployment method and device, computer readable storage medium and processor - Google Patents

Cooperative deployment method and device, computer readable storage medium and processor Download PDF

Info

Publication number
CN113672242A
CN113672242A CN202111034637.9A CN202111034637A CN113672242A CN 113672242 A CN113672242 A CN 113672242A CN 202111034637 A CN202111034637 A CN 202111034637A CN 113672242 A CN113672242 A CN 113672242A
Authority
CN
China
Prior art keywords
deployment
atomic
sub
arrangement mode
tasks
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
CN202111034637.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.)
Postal Savings Bank of China Ltd
Original Assignee
Postal Savings 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 Postal Savings Bank of China Ltd filed Critical Postal Savings Bank of China Ltd
Priority to CN202111034637.9A priority Critical patent/CN113672242A/en
Publication of CN113672242A publication Critical patent/CN113672242A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Abstract

The application provides a cooperative deployment method, a cooperative deployment device, a computer readable storage medium and a processor. Determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode; using an environment arrangement mode, deploying a plurality of sub-deployment pipelines in an environment arrangement module; multiple atomic deployment tasks are deployed in each sub-deployment pipeline, and support serial or parallel or mixed serial and parallel execution. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.

Description

Cooperative deployment method and device, computer readable storage medium and processor
Technical Field
The present application relates to the field of cloud computing, and in particular, to a cooperative deployment method, apparatus, computer-readable storage medium, and processor.
Background
The term DevOps is derived from the combination of Development and Operations, and is a mode for developing operation and maintenance integration. The DevOps mode opens tool chains of business requirements, development, testing, deployment, monitoring, safety and the like, fully implements automation and monitoring on all links of software construction, can shorten development period, and improves deployment frequency and release reliability, thereby improving enterprise research and development efficiency. In recent years, many enterprises are striving to improve the DevOps capability to improve the technology level and the enterprise competitiveness, and most of the DevOps systems on the market at present realize the functions of continuous integration and continuous deployment based on Jenkins, GitLab and other tools and automation scripts.
Most of the traditional DevOps deployment methods adopt Jenkins and other tools and automated script execution to deploy media to specific target resources, and the following disadvantages exist in the conventional DevOps deployment methods:
(1) the DevOps needs to be different for different enterprises, and some enterprises need to deploy different versions of multiple systems in series or in parallel in multiple different environments in the process of continuous deployment to improve reliability and achieve rapid delivery. And the traditional deployment mode cannot simultaneously meet the collaborative deployment requirement of multi-environment multi-version multi-application.
(2) In addition, with the rapid development of business, an enterprise gradually transforms to a micro-service architecture, sometimes an application is split into tens of or even more micro-services, complex dependency relationships exist among the services, the processing and management of the application dependency relationships by a traditional deployment mode are complex and tedious, if the traditional deployment mode is adopted to compile, pack, deploy and test each split micro-service, the continuous delivery work cost of the enterprise is greatly increased, common parameter items among the services need to be repeatedly configured, multiplexing cannot be realized, and the complexity is difficult to estimate.
In the prior art, a deployment mode of a DevOps system can only deploy for a single resource, cannot simultaneously meet the collaborative deployment requirement of multi-environment multi-version multi-application, and a common parameter item needs to be repeatedly configured, cannot realize multiplexing, and increases the working cost of continuous delivery.
Disclosure of Invention
The present application mainly aims to provide a cooperative deployment method, apparatus, computer-readable storage medium and processor, so as to solve the problem that the deployment mode of the DevOps system in the prior art can only deploy for a single resource.
In order to achieve the above object, according to an aspect of the present application, there is provided a collaborative deployment method including: determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode; deploying a plurality of sub-deployment pipelines in an environment arrangement module by using the environment arrangement mode; and deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, wherein the plurality of atomic deployment tasks support serial or parallel or serial and parallel mixed execution.
Further, before deploying a plurality of atomic deployment tasks in each of the child deployment pipelines, the method further comprises: associating a pre-build module with a plurality of codebases; configuring sub-construction pipelines with different versions in the front construction module; adopting codes in the code base to construct all or part of atomic construction tasks, and configuring a plurality of atomic construction tasks in each sub-construction flow line; and executing a plurality of the atom construction tasks to generate a plurality of mediums.
Further, the atomic deployment task is to deploy the medium on a resource.
Further, after executing a plurality of the atomic construction tasks and generating a plurality of mediums, the method further comprises: storing a plurality of the media in a media store.
Further, a plurality of the atomic build tasks in each of the sub-build pipelines support serial or parallel execution.
Further, the atomic build task includes at least one of: pulling SVN or Git codes, Maven or NPM construction, SonarQube scanning and Xray vulnerability scanning.
Further, after deploying a plurality of atomic deployment tasks in each of the child deployment pipelines, the method further comprises: and executing each atomic deployment task.
According to another aspect of the present application, there is provided a collaborative deployment apparatus comprising: the determining unit is used for determining an environment arrangement mode according to the service requirement, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode; the first deployment unit is used for deploying a plurality of sub-deployment pipelines in the environment arrangement module by using the environment arrangement mode; and the second deployment unit is used for deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, and the atomic deployment tasks support serial, parallel or serial-parallel mixed execution.
According to still another aspect of the present application, a computer-readable storage medium is provided, which includes a stored program, wherein when the program runs, the apparatus on which the computer-readable storage medium is located is controlled to execute any one of the collaborative deployment methods.
According to still another aspect of the present application, there is provided a processor configured to execute a program, where the program executes any one of the collaborative deployment methods.
By applying the technical scheme of the application, the environment arrangement mode is determined according to the service requirement, then the plurality of sub-arrangement pipelines are arranged in the environment arrangement module, a plurality of atomic arrangement tasks are arranged in each sub-arrangement pipeline, the plurality of sub-arrangement pipelines can be arranged in a serial arrangement mode, a parallel arrangement mode or a series-parallel mixed arrangement mode, and the plurality of atomic arrangement tasks in each sub-arrangement pipeline can support serial, parallel or series-parallel mixed execution. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a flow diagram of a collaborative deployment method according to an embodiment of the application;
FIG. 2 illustrates an environmental orchestration pattern schematic according to embodiments of the application;
FIG. 3 illustrates a front build schematic according to an embodiment of the present application;
FIG. 4 shows a schematic diagram of a co-deployment apparatus according to an embodiment of the application;
FIG. 5 shows a co-deployment system flow diagram according to an embodiment of the application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
and (3) release: uploading the constructed product to a medium warehouse.
Deployment: and deploying the media in the media warehouse to the target resource server.
As introduced in the background, the deployment paradigm of prior art DevOps systems can only be deployed for a single resource. In order to solve the problem that the deployment mode of the DevOps system can only be deployed for a single resource, embodiments of the present application provide a cooperative deployment method, apparatus, computer-readable storage medium and processor.
According to an embodiment of the application, a collaborative deployment method is provided.
Fig. 1 is a flowchart of a cooperative deployment method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode;
step S102, using the environment arrangement mode to arrange a plurality of sub-arrangement pipelines in an environment arrangement module;
step S103, deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, where the plurality of atomic deployment tasks support serial, parallel, or mixed serial and parallel execution.
Specifically, the sub-deployment pipeline is a resource, or referred to as an environment. The difference of the atomic deployment tasks can meet the requirements of different applications.
Specifically, the sub-deployment pipeline can support multiple application/service deployments (such as Springboot, Tomcat, Nginx, and the like), the deployment environment configuration supports serial, parallel, and mixed-mode configurations of multiple deployment pipelines, and one-key cooperative deployment of multiple applications and multiple environments can be realized.
In the above scheme, an environment arrangement mode is determined according to business requirements, then a plurality of sub-arrangement pipelines are arranged in an environment arrangement module, a plurality of atomic arrangement tasks are arranged in each sub-arrangement pipeline, the plurality of sub-arrangement pipelines can be arranged in a serial arrangement mode, a parallel arrangement mode or a mixed serial-parallel arrangement mode, and the plurality of atomic arrangement tasks in each sub-arrangement pipeline can support serial, parallel or mixed serial-parallel execution. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In one particular embodiment, as shown in FIG. 2, a sub-deployment pipeline A, a sub-deployment pipeline B, a sub-deployment pipeline C, a sub-deployment pipeline D, and a sub-deployment pipeline E are deployed in the environment orchestration module. The transversely arranged sub-deployment pipelines are configured to be in a serial mode, the longitudinally arranged sub-deployment pipelines are in a parallel mode, and the serial and parallel modes are mixed for use. Each sub-deployment pipeline can add a plurality of atomic deployment tasks, and scripts of the sub-deployment pipelines are generated by splicing the task scripts and transmitted into Jenkins to be executed. The atomic deployment tasks can also support serial or parallel execution configuration, so that multi-environment, multi-application and multi-version collaborative deployment can be supported.
(1) Serial mode
In serial mode, each sub-deployment pipeline may set up multiple front-end contexts. As shown in fig. 2, the pre-environments of sub-deployment pipeline B are sub-deployment pipeline a and sub-deployment pipeline D, respectively, and the pre-environments of sub-deployment pipeline C are sub-deployment pipeline B and sub-deployment pipeline E. And the serial execution sequence is stored in the environment list, if the execution of the preposed environments is finished, the next pipeline is executed, and if not, the next pipeline is continuously waited.
(2) Parallel mode
And in the parallel mode, a plurality of sub-deployment pipelines are created, each sub-deployment pipeline is not provided with a preposed environment, and all the sub-deployment pipelines are executed in parallel without the precedence order during execution. As with the sub-deployment pipeline a and the sub-deployment pipeline D in fig. 2, no pre-contexts are set, nor dependencies exist, and thus execution is in parallel.
(3) Mixed mode
In the mixed mode, serial and parallel configurations can be mixed and used according to requirements, and the deployment pipeline realizes deployment in a complex scene according to serial and parallel execution rules. The serial and parallel modes are executed in a mixed mode, and the deployment requirement under the complex scene such as an associated system or a micro-service architecture can be met.
In an embodiment of the application, before deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines, the method further includes: associating a pre-build module with a plurality of codebases; configuring sub-construction pipelines with different versions in the preposed construction module; adopting codes in the code base to construct all or part of atom construction tasks, and configuring a plurality of atom construction tasks in each sub-construction pipeline; and executing a plurality of the atom construction tasks to generate a plurality of mediums. By associating the front-end building module with the plurality of code libraries, due to the difference of codes, multi-version and multi-application collaborative release can be realized according to requirements. The one-key collaborative release of different versions of different applications can be realized by connecting different code libraries, medium libraries and the combination of the sub-construction pipelines.
In a specific embodiment of the present application, as shown in fig. 3, the pre-build module is associated with a code library, and the code library includes a code library 1, a code library 2, and a code library n …. A plurality of sub-construction pipelines 1 are created in the pre-construction module. The atomic construction task can be constructed by adopting codes in a code library, and can also be constructed in other modes. And generating a medium after executing the atom construction task, and storing the medium in a medium warehouse for convenient calling during deployment.
In an embodiment of the application, the atomic deployment task is used to deploy the medium on a resource. Namely, the atomic deployment task in the sub-deployment pipeline uses the medium generated by the atomic construction task to realize one-key cooperative deployment of multiple applications, multiple versions and multiple environments.
In an embodiment of the application, after performing a plurality of the above atomic construction tasks and generating a plurality of mediums, the method further includes: a plurality of the above media are stored in a media repository. I.e., by invoking media in the media repository to implement the deployment task on the resource. According to the scheme, through an approval strategy, a medium strategy and the like, the assembly line and the assembly line task are randomly combined according to different service scenes, the collaborative deployment of the version, the application and the environment is realized, and the problems of multiple associated systems, adoption of a micro-service architecture, frequent construction of a complex system, multi-environment/resource deployment and the like are solved. In the whole life cycle of software development, the working efficiency is continuously improved, the working quality is guaranteed, the continuous delivery of projects is realized, and the software development efficiency is improved.
In one embodiment, the atomic deployment tasks in the sub-deployment pipeline may or may not use the medium generated by the atomic build tasks in the sub-build pipeline. That is, the deployment of the media is diversified, and the ready-made latest version of the media, fixed version of the media, or media URL, which is to acquire the media through an address link, may be used without using the media generated by the atomic build task. The multi-version and multi-application media can be associated with different environments, and one-key cooperative deployment of the multi-version and multi-environment can be realized through three environment arrangement modes of serial, parallel and mixed.
In one embodiment of the present application, a plurality of the above-described atomic build tasks in each of the above-described sub-build pipelines support serial or parallel execution.
In an embodiment of the present application, the atomic construction task includes at least one of: pulling SVN or Git codes, Maven or NPM construction, SonarQube scanning and Xray vulnerability scanning.
In an embodiment of the application, after a plurality of atomic deployment tasks are deployed in each of the sub-deployment pipelines, the method further includes: and executing each atomic deployment task. And carrying out service implementation.
The embodiment of the present application further provides a cooperative deployment apparatus, and it should be noted that the cooperative deployment apparatus according to the embodiment of the present application may be used to execute the method for cooperative deployment provided in the embodiment of the present application. The following describes a cooperative deployment apparatus provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a co-deployment device according to an embodiment of the application. As shown in fig. 4, the apparatus includes:
a determining unit 10, configured to determine an environment arrangement mode according to a service requirement, where the environment arrangement mode includes a serial arrangement mode, a parallel arrangement mode, and a serial-parallel hybrid arrangement mode;
a first deployment unit 20, configured to deploy a plurality of sub-deployment pipelines in the environment orchestration module using the environment orchestration mode;
and a second deployment unit 30, configured to deploy multiple atomic deployment tasks in each sub-deployment pipeline, where the multiple atomic deployment tasks support serial, parallel, or mixed serial and parallel execution.
In the above scheme, the determining unit determines the environment arrangement mode according to the service requirement, the first deployment unit deploys a plurality of sub-deployment pipelines in the environment arrangement module, the second deployment unit deploys a plurality of atomic deployment tasks in each of the sub-deployment pipelines, the plurality of sub-deployment pipelines may be arranged in series, arranged in parallel or mixed in series and parallel, and the plurality of atomic deployment tasks in each sub-deployment pipeline may support mixed execution in series, parallel or mixed in series and parallel. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.
In an embodiment of the application, the apparatus further includes an association unit, a configuration unit, a construction unit, and a first execution unit, where the association unit is configured to associate a pre-construction module with a plurality of code libraries before deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines; the configuration unit is used for configuring the sub-construction pipelines with different versions in the prepositive construction module; the construction unit is used for constructing all or part of the atomic construction tasks by adopting the codes in the code base, and configuring a plurality of atomic construction tasks in each sub-construction pipeline; the first execution unit is used for executing a plurality of atom construction tasks and generating a plurality of media.
In an embodiment of the application, the apparatus further includes a storage unit, where the storage unit is configured to store a plurality of media in a media repository after a plurality of media are generated by executing a plurality of the atomic construction tasks.
In an embodiment of the application, the apparatus further includes a second execution unit, and the second execution unit is configured to execute each of the atomic deployment tasks after the plurality of atomic deployment tasks are deployed in each of the sub-deployment pipelines.
The cooperative deployment apparatus includes a processor and a memory, the determining unit, the first deployment unit, the second deployment unit, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to one or more, and multi-environment cooperative deployment is realized by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention provides a computer-readable storage medium, which comprises a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute the collaborative deployment method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the cooperative deployment method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode;
step S102, using the environment arrangement mode to arrange a plurality of sub-arrangement pipelines in an environment arrangement module;
step S103, deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, where the plurality of atomic deployment tasks support serial, parallel, or mixed serial and parallel execution.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode;
step S102, using the environment arrangement mode to arrange a plurality of sub-arrangement pipelines in an environment arrangement module;
step S103, deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, where the plurality of atomic deployment tasks support serial, parallel, or mixed serial and parallel execution.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Examples
The embodiment relates to a system and a method for multi-version collaborative release and multi-environment collaborative deployment based on DevOps.
Fig. 5 is a flow chart of the system, and the overall use flow of the system is shown in fig. 5.
Step 1: configuration pre-construction. Configuring sub-construction flow lines of different versions, associating a code base and a medium warehouse in the sub-construction flow lines, adding an atom construction task, and then adding the sub-construction flow lines into a front construction list. If there is no co-issuing request, this step can be omitted.
Step 2: orchestration of the deployment environment is performed. Firstly, configuring a medium strategy, then adding an environment module in an environment configuration interface by using a corresponding arrangement mode according to requirements, and configuring corresponding environment information; and then add the atomic deployment task in a different environment module.
And step 3: deployment is performed. And after clicking a deployment button, if the front construction is configured, executing the sub-construction pipelines in the front construction, and then executing the tasks in the sub-deployment pipelines in series or in parallel according to the configured arrangement mode.
The front building block comprises three parts: the system comprises an association code base, a preposed construction pipeline configuration arrangement and an association medium warehouse. The collaborative release of multiple versions and multiple applications can be realized by associating different code bases, medium warehouses and the combined arrangement of the sub-construction pipelines. The pre-build module is optional, and when executing deployment, if the pre-build module is configured, the pre-build pipeline is preferentially executed.
(1) Associative code library
The sub-construction assembly line configured by the front construction module can be associated with code libraries of different applications and versions, and executes atomic construction tasks on different versions of the plurality of applications;
(2) pre-build pipeline configuration orchestration
The pre-build module may add a number of defined sub-build pipelines. Various atom construction tasks (such as tasks of pulling SVN or Git codes, Maven or NPM construction, SonarQube scanning, Xray vulnerability scanning and the like) can be added into the sub-construction assembly line, and serial or parallel execution sequence configuration is supported among the atom construction tasks.
(3) Associated media warehouse
Each sub-build pipeline may correspond to a different media store, and the media artifacts after the build are performed may be distributed to the different media stores.
The environment arrangement module can support three environment arrangement modes of serial, parallel and mixed, the transversely arranged sub-deployment pipelines are configured to be in a serial mode, the longitudinally arranged sub-deployment pipelines are in a parallel mode, and the serial and parallel modes are mixed for use. Each sub-deployment pipeline can add a plurality of atomic deployment tasks, and scripts of the sub-deployment pipelines are generated by splicing the task scripts and transmitted into Jenkins to be executed. The atomic deployment tasks can also support serial or parallel execution configuration, so that the cooperative deployment of different versions and different applications can be supported.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) the cooperative deployment method comprises the steps of determining an environment arrangement mode according to business requirements, then deploying a plurality of sub-deployment pipelines in an environment arrangement module, deploying a plurality of atom deployment tasks in each sub-deployment pipeline, wherein the plurality of sub-deployment pipelines can be arranged in a serial arrangement mode, a parallel arrangement mode or a series-parallel mixed arrangement mode, and the plurality of atom deployment tasks in each sub-deployment pipeline can support serial, parallel or series-parallel mixed execution. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.
2) The determining unit determines an environment arrangement mode according to business requirements, the first arrangement unit arranges a plurality of sub-arrangement pipelines in the environment arrangement module, the second arrangement unit arranges a plurality of atom arrangement tasks in each sub-arrangement pipeline, the sub-arrangement pipelines can be arranged in series, in parallel or in series-parallel, and the atom arrangement tasks in each sub-arrangement pipeline can support series, parallel or in series-parallel mixed execution. And the cooperative deployment of multiple resources, multiple environments and multiple versions is realized.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A collaborative deployment method, comprising:
determining an environment arrangement mode according to business requirements, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode;
deploying a plurality of sub-deployment pipelines in an environment arrangement module by using the environment arrangement mode;
and deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, wherein the plurality of atomic deployment tasks support serial or parallel or serial and parallel mixed execution.
2. The method of claim 1, wherein prior to deploying a plurality of atomic deployment tasks in each of the child deployment pipelines, the method further comprises:
associating a pre-build module with a plurality of codebases;
configuring sub-construction pipelines with different versions in the front construction module;
adopting codes in the code base to construct all or part of atomic construction tasks, and configuring a plurality of atomic construction tasks in each sub-construction flow line;
and executing a plurality of the atom construction tasks to generate a plurality of mediums.
3. The method of claim 2, wherein the atomic deployment task is to deploy the medium on a resource.
4. The method of claim 2, wherein after performing a plurality of the atomic construction tasks, generating a plurality of mediums, the method further comprises:
storing a plurality of the media in a media store.
5. The method of any of claims 2 to 4, wherein a plurality of the atomic build tasks in each of the sub-build pipelines support serial or parallel execution.
6. The method of any of claims 2 to 4, wherein the atomic build task comprises at least one of:
pulling SVN or Git codes, Maven or NPM construction, SonarQube scanning and Xray vulnerability scanning.
7. The method of claim 1, wherein after deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines, the method further comprises:
and executing each atomic deployment task.
8. A co-deployment apparatus, comprising:
the determining unit is used for determining an environment arrangement mode according to the service requirement, wherein the environment arrangement mode comprises a serial arrangement mode, a parallel arrangement mode and a serial-parallel mixed arrangement mode;
the first deployment unit is used for deploying a plurality of sub-deployment pipelines in the environment arrangement module by using the environment arrangement mode;
and the second deployment unit is used for deploying a plurality of atomic deployment tasks in each sub-deployment pipeline, and the atomic deployment tasks support serial, parallel or serial-parallel mixed execution.
9. A computer-readable storage medium, comprising a stored program, wherein when the program runs, the computer-readable storage medium controls a device to execute the collaborative deployment method according to any one of claims 1 to 7.
10. A processor configured to run a program, wherein the program when running performs the co-deployment method of any one of claims 1 to 7.
CN202111034637.9A 2021-09-03 2021-09-03 Cooperative deployment method and device, computer readable storage medium and processor Pending CN113672242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111034637.9A CN113672242A (en) 2021-09-03 2021-09-03 Cooperative deployment method and device, computer readable storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111034637.9A CN113672242A (en) 2021-09-03 2021-09-03 Cooperative deployment method and device, computer readable storage medium and processor

Publications (1)

Publication Number Publication Date
CN113672242A true CN113672242A (en) 2021-11-19

Family

ID=78548459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111034637.9A Pending CN113672242A (en) 2021-09-03 2021-09-03 Cooperative deployment method and device, computer readable storage medium and processor

Country Status (1)

Country Link
CN (1) CN113672242A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580832A (en) * 2020-04-29 2020-08-25 电科云(北京)科技有限公司 Application release system and method applied to heterogeneous multi-cloud environment
CN112486557A (en) * 2020-11-25 2021-03-12 浙江臻善科技股份有限公司 Development-based complete life cycle management platform and method
CN112667491A (en) * 2019-10-16 2021-04-16 腾讯科技(深圳)有限公司 Function test method and device of virtual machine
US20210248058A1 (en) * 2020-02-12 2021-08-12 Capital One Services, Llc Feature-based deployment pipelines

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667491A (en) * 2019-10-16 2021-04-16 腾讯科技(深圳)有限公司 Function test method and device of virtual machine
US20210248058A1 (en) * 2020-02-12 2021-08-12 Capital One Services, Llc Feature-based deployment pipelines
CN111580832A (en) * 2020-04-29 2020-08-25 电科云(北京)科技有限公司 Application release system and method applied to heterogeneous multi-cloud environment
CN112486557A (en) * 2020-11-25 2021-03-12 浙江臻善科技股份有限公司 Development-based complete life cycle management platform and method

Similar Documents

Publication Publication Date Title
CN112822272B (en) Micro-service gray level release method and device, computer equipment and storage medium
US10402302B1 (en) Reproduction of testing scenarios in a continuous integration environment
CN111580832A (en) Application release system and method applied to heterogeneous multi-cloud environment
CN109725911A (en) A kind of multi-environment project dispositions method, device, storage medium and processor
CN106775744B (en) Method and device for generating static library
CN107704238B (en) Method and device for packaging items
CN110912724A (en) Parameter-driven automatic service arrangement method and device
CN110704061A (en) Operation method and device for deploying delivery part based on micro-service
KR20200115020A (en) Hyperledger fabric network creation method, controller and storage medium
US10185648B2 (en) Preservation of modifications after overlay removal from a container
CN111897539A (en) Method and device for deploying applications according to service roles
US9542173B2 (en) Dependency handling for software extensions
CN102541609B (en) Installation program manufacturing method, device and network device
CN111399814A (en) Visual arrangement method and device for construction tasks
CN112148278A (en) Visual block chain intelligent contract framework and intelligent contract development and deployment method
CN111857801B (en) Construction method of mobile application
CN112579049A (en) Customized software productization management method and device based on cloud platform
CN111258567B (en) Service code development processing method and device
CN113835705A (en) Big data service product development method, device and system
CN113672242A (en) Cooperative deployment method and device, computer readable storage medium and processor
CN111596947A (en) Data processing method and device
Zúñiga-Prieto et al. Incremental integration of microservices in cloud applications
CN114265595B (en) Cloud native application development and deployment system and method based on intelligent contracts
CN115543358A (en) Distributed cloud platform micro-service business arrangement method and system based on Docker
CN114791884A (en) Test environment construction method and device, storage medium and electronic 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