Collaborative deployment method, device, computer-readable storage medium, and processor

By determining the environment orchestration mode and deployment pipeline according to business needs, it solves the problem that the DevOps system cannot simultaneously meet the deployment of multi-environments, multi-versions and multi-applications, and achieves collaborative deployment of multi-resources, multi-environments and multi-versions, reducing work costs and improving efficiency. Work efficiency.

CN113672242BActive Publication Date: 2024-09-24中国邮政储蓄银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111034637.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-03
Publication Date
2024-09-24
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

The deployment model of the existing DevOps system can only deploy a single resource, which cannot meet the collaborative deployment requirements of multiple environments, multiple versions and multiple applications at the same time. Public parameter items need to be configured repeatedly, which increases the cost of continuous delivery.

Method used

Determine the environment orchestration mode according to business needs, including serial orchestration mode, parallel orchestration mode and serial-parallel hybrid orchestration mode. Deploy multiple sub-deployment pipelines in the environment orchestration module, and deploy multiple atomic deployment tasks in the sub-deployment pipelines to support serialization. Line, parallel or serial-parallel hybrid execution, associate with multiple code bases through front-end building modules, configure sub-build pipelines of different versions, execute atomic build tasks to generate media, and store it in the media warehouse.

Benefits of technology

It achieves collaborative deployment of multiple resources, multiple environments, and multiple versions, reduces repeated configuration of public parameters, reduces the cost of continuous delivery, and improves work efficiency and software development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113672242B
    Figure CN113672242B
Patent Text Reader

Abstract

The present application provides a collaborative deployment method, device, computer-readable storage medium and processor. The method includes determining an environment orchestration mode according to business needs, and the environment orchestration mode includes a serial orchestration mode, a parallel orchestration mode and a serial-parallel hybrid orchestration mode; using the environment orchestration mode, deploying multiple sub-deployment pipelines in the environment orchestration module; deploying multiple atomic deployment tasks in each sub-deployment pipeline, and the multiple atomic deployment tasks support serial or parallel or serial-parallel hybrid execution. The collaborative deployment of multiple resources, multiple environments and multiple versions is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing, and more specifically, to a collaborative deployment method, device, computer-readable storage medium, and processor. Background Art

[0002] The term DevOps comes from the combination of Development and Operations, and is a model that integrates R&D and operations. The DevOps model connects the tool chains of business needs, development, testing, deployment, monitoring, and security, and fully implements automation and monitoring for all aspects of building software. It can shorten the development cycle, increase the frequency of deployment and the reliability of release, thereby improving the R&D efficiency of enterprises. In recent years, many companies have been focusing on improving DevOps capabilities to enhance their technological level and corporate competitiveness. Currently, most DevOps systems on the market are based on tools such as Jenkins and GitLab and automated scripts to achieve continuous integration and continuous deployment functions.

[0003] Traditional DevOps deployment methods mostly use tools such as Jenkins and automated script execution to deploy media to specific target resources. This method has the following shortcomings:

[0004] (1) Different enterprises have different requirements for DevOps. In order to improve reliability and achieve rapid delivery during continuous deployment, some enterprises need to deploy different versions of multiple systems in multiple environments in series or in parallel. However, the traditional deployment model cannot meet the requirements for the coordinated deployment of multiple environments, multiple versions, and multiple applications at the same time.

[0005] (2) In addition, with the rapid development of business, enterprises are gradually transforming to microservice architecture, sometimes splitting an application into dozens or even more microservices. There are complex dependencies between services. The traditional deployment model is relatively complex and cumbersome to handle and manage these application dependencies. If the traditional build and deployment model is used to compile, package, deploy, and test each microservice after splitting, the work cost of continuous delivery of the enterprise is greatly increased. In addition, the common parameter items between services need to be configured repeatedly and cannot be reused. The complexity is also difficult to estimate.

[0006] In the existing technology, the deployment mode of the DevOps system can only be deployed for a single resource, and cannot simultaneously meet the collaborative deployment requirements of multiple environments, multiple versions, and multiple applications. In addition, common parameter items need to be configured repeatedly and cannot be reused, which increases the work cost of continuous delivery. Summary of the invention

[0007] The main purpose of this application is to provide a collaborative deployment method, device, computer-readable storage medium and processor to solve the problem that the deployment mode of the DevOps system in the prior art can only be deployed for a single resource.

[0008] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a collaborative deployment method is provided, including: determining an environment orchestration mode according to business needs, the environment orchestration mode including a serial orchestration mode, a parallel orchestration mode and a serial-parallel mixed orchestration mode; using the environment orchestration mode to deploy multiple sub-deployment pipelines in an environment orchestration module; deploying multiple atomic deployment tasks in each of the sub-deployment pipelines, and the multiple atomic deployment tasks support serial or parallel or serial-parallel mixed execution.

[0009] Furthermore, before deploying multiple atomic deployment tasks in each of the sub-deployment pipelines, the method also includes: associating a front-end construction module with multiple code bases; configuring sub-build pipelines of different versions in the front-end construction module; using the code in the code base to build all or part of the atomic build tasks, and configuring multiple atomic build tasks in each of the sub-build pipelines; executing multiple atomic build tasks to generate multiple media.

[0010] Furthermore, the atomic deployment task is used to deploy the medium on a resource.

[0011] Furthermore, after executing a plurality of the atomic construction tasks and generating a plurality of media, the method further includes: storing the plurality of the media in a media warehouse.

[0012] Furthermore, the multiple atomic construction tasks in each of the sub-construction pipelines support serial or parallel execution.

[0013] Furthermore, the atomic build task includes at least one of the following: pulling SVN or Git code, Maven or NPM building, SonarQube scanning, and Xray vulnerability scanning.

[0014] Furthermore, after deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines, the method further includes: executing each of the atomic deployment tasks.

[0015] According to another aspect of the present application, a collaborative deployment device is provided, including: a determination unit, used to determine an environment orchestration mode according to business needs, the environment orchestration mode including a serial orchestration mode, a parallel orchestration mode and a serial-parallel mixed orchestration mode; a first deployment unit, used to use the environment orchestration mode to deploy multiple sub-deployment pipelines in an environment orchestration module; a second deployment unit, used to deploy multiple atomic deployment tasks in each of the sub-deployment pipelines, the multiple atomic deployment tasks supporting serial, parallel or serial-parallel mixed execution.

[0016] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the collaborative deployment methods.

[0017] According to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the collaborative deployment methods when running.

[0018] By applying the technical solution of this application, the environment orchestration mode is determined according to business needs, and then multiple sub-deployment pipelines are deployed in the environment orchestration module, and multiple atomic deployment tasks are deployed in each of the above sub-deployment pipelines. Multiple sub-deployment pipelines can be serially orchestrated, parallelly orchestrated, or serial-parallel mixed orchestration, and multiple atomic deployment tasks in each sub-deployment pipeline can support serial, parallel, or serial-parallel mixed execution. Collaborative deployment of multiple resources, multiple environments, and multiple versions is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 A flow chart of a collaborative deployment method according to an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of an environment orchestration mode according to an embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram of a front-end structure according to an embodiment of the present application is shown;

[0023] Figure 4 A schematic diagram of a collaborative deployment device according to an embodiment of the present application is shown;

[0024] Figure 5 A flow chart of a collaborative deployment system according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, 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.

[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0030] Release: Upload the built product to the media repository.

[0031] Deployment: Deploy the media in the media warehouse to the target resource server.

[0032] As introduced in the background technology, the deployment mode of the DevOps system in the prior art can only be deployed for a single resource. To solve the problem that the deployment mode of the DevOps system can only be deployed for a single resource, the embodiments of the present application provide a collaborative deployment method, device, computer-readable storage medium and processor.

[0033] According to an embodiment of the present application, a collaborative deployment method is provided.

[0034] Figure 1 is a flow chart of a collaborative deployment method according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0035] Step S101, determining an environment orchestration mode according to business requirements, the environment orchestration mode including a serial orchestration mode, a parallel orchestration mode and a serial-parallel hybrid orchestration mode;

[0036] Step S102, using the above environment orchestration mode, deploying multiple sub-deployment pipelines in the environment orchestration module;

[0037] Step S103, deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, and the multiple atomic deployment tasks support serial, parallel or serial-parallel mixed execution.

[0038] Specifically, the above sub-deployment pipeline is a resource, or an environment. Different atomic deployment tasks can meet the needs of different applications.

[0039] Specifically, the above-mentioned sub-deployment pipeline can support the deployment of multiple applications / services (such as Springboot, Tomcat, Nginx, etc.), and the deployment environment configuration supports the serial, parallel and mixed mode configuration of multiple deployment pipelines, which can realize one-click collaborative deployment of multiple applications and multiple environments.

[0040] In the above scheme, the environment orchestration mode is determined according to business needs, and then multiple sub-deployment pipelines are deployed in the environment orchestration module. Multiple atomic deployment tasks are deployed in each of the above sub-deployment pipelines. Multiple sub-deployment pipelines can be serially orchestrated, parallelly orchestrated, or serial-parallel mixed orchestration. Multiple atomic deployment tasks in each sub-deployment pipeline can support serial, parallel, or serial-parallel mixed execution. Collaborative deployment of multiple resources, multiple environments, and multiple versions is achieved.

[0041] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] In a specific implementation manner, Figure 2As shown in the figure, sub-deployment pipeline A, sub-deployment pipeline B, sub-deployment pipeline C, sub-deployment pipeline D and sub-deployment pipeline E are deployed in the environment orchestration module. The sub-deployment pipelines of horizontal orchestration are configured in serial mode, and the sub-deployment pipelines of vertical orchestration are configured in parallel mode. The mixed mode is a combination of serial and parallel modes. Each sub-deployment pipeline can add multiple atomic deployment tasks, and the script of the sub-deployment pipeline is generated by splicing task scripts and passed to Jenkins for execution. Atomic deployment tasks can also support serial or parallel execution configuration, so as to support the collaborative deployment of multiple environments, multiple applications and multiple versions.

[0043] (1) Serial mode

[0044] In serial mode, each sub-deployment pipeline can set up multiple pre-environments. Figure 2 As shown in the figure, the pre-environment of sub-deployment pipeline B is sub-deployment pipeline A and sub-deployment pipeline D, and the pre-environment of sub-deployment pipeline C is sub-deployment pipeline B and sub-deployment pipeline E. The serial execution order will be saved in the environment list. If the pre-environment has been executed, the next pipeline will be executed, otherwise it will continue to wait.

[0045] (2) Parallel mode

[0046] In parallel mode, multiple sub-deployment pipelines are created. Each sub-deployment pipeline does not set a pre-condition. When executing, all sub-deployment pipelines are executed in parallel regardless of the order. Figure 2 Sub-deployment pipeline A and sub-deployment pipeline D in the example do not have any pre-conditions or dependencies, and thus are executed in parallel.

[0047] (3) Hybrid Mode

[0048] In hybrid mode, you can mix serial and parallel configurations according to your needs, and the deployment pipeline can implement deployment in complex scenarios according to serial and parallel execution rules. Mixed execution of serial and parallel modes can meet deployment requirements in complex scenarios such as related systems or microservice architectures.

[0049] In one embodiment of the present application, before deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, the above-mentioned method also includes: associating the front-end construction module with multiple code bases; configuring different versions of sub-build pipelines in the above-mentioned front-end construction module; using the code in the above-mentioned code base to build all or part of the atomic construction tasks, and in each of the above-mentioned sub-build pipelines, configuring multiple of the above-mentioned atomic construction tasks; executing multiple of the above-mentioned atomic construction tasks to generate multiple media. By associating the front-end construction module with multiple code bases, due to the difference in codes, the collaborative release of multiple versions and multiple applications can be achieved according to demand. By connecting different code bases, media libraries and sub-build pipelines, one-click collaborative release of different versions of different applications can be achieved.

[0050] In a specific embodiment of the present application, Figure 3 As shown, the pre-build module is associated with the code base, and the code base includes code base 1, code base 2, ... code base n. Multiple sub-build pipelines 1 are created in the pre-build module. The atomic build task can be built using the code in the code base or in other ways. After executing the atomic build task, the media is generated and then stored in the media warehouse for easy calling during deployment.

[0051] In one embodiment of the present application, the atomic deployment task is used to deploy the medium on the resource. That is, the atomic deployment task in the sub-deployment pipeline uses the medium generated by the atomic build task to achieve one-click collaborative deployment of multiple applications, multiple versions and multiple environments.

[0052] In one embodiment of the present application, after executing multiple atomic construction tasks and generating multiple media, the method further includes: storing the multiple media in a media warehouse. That is, the deployment of tasks on resources is achieved by calling the media in the media warehouse. This solution uses approval strategies, media strategies, etc. to arbitrarily combine pipelines and pipeline tasks according to different business scenarios to achieve collaborative deployment of versions, applications, and environments, solving problems such as multiple related systems, microservice architecture, frequent construction of complex systems, and multi-environment / resource deployment. Throughout the entire life cycle of software development, work efficiency is continuously improved, work quality is guaranteed, continuous delivery of projects is achieved, and software development efficiency is improved.

[0053] In one embodiment, the atomic deployment task in the sub-deployment pipeline may use the media generated by the atomic build task in the sub-build pipeline, or may not use the media generated by the atomic build task. That is, the deployment of the media is diversified. When the media generated by the atomic build task is not used, the latest version of the ready-made media, the fixed version of the media, or the media URL can be used, where the media URL refers to obtaining the media through the address link. It is also possible to associate multi-version and multi-application media with different environments, and realize one-click collaborative deployment of multiple applications, multiple versions, and multiple environments through three environment orchestration modes: serial, parallel, and hybrid.

[0054] In one embodiment of the present application, the multiple atomic construction tasks in each of the sub-construction pipelines support serial or parallel execution.

[0055] In one embodiment of the present application, the above-mentioned atomic build task includes at least one of the following: pulling SVN or Git code, Maven or NPM building, SonarQube scanning, and Xray vulnerability scanning.

[0056] In one embodiment of the present application, after deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, the above-mentioned method further includes: executing each of the above-mentioned atomic deployment tasks to implement the service.

[0057] The embodiment of the present application also provides a collaborative deployment device. It should be noted that the collaborative deployment device of the embodiment of the present application can be used to execute the collaborative deployment method provided by the embodiment of the present application. The collaborative deployment device provided by the embodiment of the present application is introduced below.

[0058] Figure 4 is a schematic diagram of a collaborative deployment device according to an embodiment of the present application. Figure 4 As shown, the device comprises:

[0059] The determining unit 10 is used to determine the environment orchestration mode according to the business requirements, and the above environment orchestration mode includes a serial orchestration mode, a parallel orchestration mode and a serial-parallel hybrid orchestration mode;

[0060] A first deployment unit 20, configured to deploy multiple sub-deployment pipelines in an environment orchestration module using the above environment orchestration mode;

[0061] The second deployment unit 30 is used to deploy multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, and the multiple atomic deployment tasks support serial, parallel or serial-parallel mixed execution.

[0062] In the above scheme, the determination unit determines the environment orchestration mode according to business needs, the first deployment unit deploys multiple sub-deployment pipelines in the environment orchestration module, and the second deployment unit deploys multiple atomic deployment tasks in each of the above sub-deployment pipelines. The multiple sub-deployment pipelines can be serially orchestrated, parallelly orchestrated, or serial-parallel mixed orchestration, and the multiple atomic deployment tasks in each sub-deployment pipeline can support serial, parallel, or serial-parallel mixed execution. The coordinated deployment of multiple resources, multiple environments, and multiple versions is realized.

[0063] In one embodiment of the present application, the above-mentioned device also includes an association unit, a configuration unit, a construction unit and a first execution unit. The association unit is used to associate the front-end construction module with multiple code libraries before deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines; the configuration unit is used to configure different versions of sub-build pipelines in the above-mentioned front-end construction module; the construction unit is used to use the code in the above-mentioned code library to construct all or part of the atomic construction tasks, and configure multiple of the above-mentioned atomic construction tasks in each of the above-mentioned sub-build pipelines; the first execution unit is used to execute multiple of the above-mentioned atomic construction tasks to generate multiple media.

[0064] In one embodiment of the present application, the above-mentioned device also includes a storage unit, and the storage unit is used to store the multiple media in a media warehouse after executing the multiple atomic construction tasks and generating the multiple media.

[0065] In one embodiment of the present application, the above-mentioned device also includes a second execution unit, and the second execution unit is used to execute each of the above-mentioned atomic deployment tasks after deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines.

[0066] The collaborative deployment device includes a processor and a memory. The above-mentioned determination unit, the first deployment unit, the second deployment unit, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0067] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and multi-environment collaborative deployment can be achieved by adjusting kernel parameters.

[0068] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0069] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the collaborative deployment method.

[0070] An embodiment of the present invention provides a processor, which is used to run a program, wherein the collaborative deployment method is executed when the program is running.

[0071] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0072] Step S101, determining an environment orchestration mode according to business requirements, the environment orchestration mode including a serial orchestration mode, a parallel orchestration mode and a serial-parallel hybrid orchestration mode;

[0073] Step S102, using the above environment orchestration mode, deploying multiple sub-deployment pipelines in the environment orchestration module;

[0074] Step S103, deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, and the multiple atomic deployment tasks support serial, parallel or serial-parallel mixed execution.

[0075] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0076] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0077] Step S101, determining an environment orchestration mode according to business requirements, the environment orchestration mode including a serial orchestration mode, a parallel orchestration mode and a serial-parallel hybrid orchestration mode;

[0078] Step S102, using the above environment orchestration mode, deploying multiple sub-deployment pipelines in the environment orchestration module;

[0079] Step S103, deploying multiple atomic deployment tasks in each of the above-mentioned sub-deployment pipelines, and the multiple atomic deployment tasks support serial, parallel or serial-parallel mixed execution.

[0080] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0081] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0084] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0085] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0088] Example

[0089] This embodiment relates to a system and method for multi-version collaborative release and multi-environment collaborative deployment based on DevOps. The system includes a front-end construction module and an environment configuration module, which can realize one-click collaborative release and collaborative deployment of multiple applications, multiple versions and multiple environments.

[0090] Figure 5 The system flow chart is shown below. The overall usage process of the system is as follows Figure 5 shown.

[0091] Step 1: Configure the pre-build. First, configure sub-build pipelines of different versions, associate the code base and media repository in the sub-build pipeline, add atomic build tasks, and then add the sub-build pipeline to the pre-build list. If there is no need for collaborative release, this step can be omitted.

[0092] Step 2: Orchestrate the deployment environment. First, configure the media strategy, then add environment modules using the corresponding orchestration mode in the environment configuration interface according to the needs, and configure the corresponding environment information; then add atomic deployment tasks in different environment modules.

[0093] Step 3: Execute deployment. After clicking the Deploy button, if a pre-build is configured, the sub-build pipeline in the pre-build is executed first, and then the tasks in the sub-deployment pipeline are executed serially or in parallel according to the configured orchestration mode.

[0094] The pre-build module consists of three parts: associated code base, pre-build pipeline configuration and orchestration, and associated media warehouse. By associating different code bases, media warehouses, and sub-build pipelines, the coordinated release of multiple versions and multiple applications can be achieved. The pre-build module is optional. When executing the deployment, if the pre-build module is configured, the pre-build pipeline will be executed first.

[0095] (1) Associated code base

[0096] The sub-build pipeline configured by the front-end build module can associate code bases of different applications and versions, and perform atomic build tasks on different versions of multiple applications;

[0097] (2) Pre-build pipeline configuration and orchestration

[0098] The front-end build module can add multiple defined sub-build pipelines. Multiple atomic build tasks (such as pulling SVN or Git code, Maven or NPM build, SonarQube scan, Xray vulnerability scan, etc.) can be added to the sub-build pipeline, and the atomic build tasks can be configured in serial or parallel execution order.

[0099] (3) Associated Media Warehouse

[0100] Each sub-build pipeline can correspond to a different media repository, and the media products after the build can be published to different media repositories.

[0101] The environment orchestration module can support three environment orchestration modes: serial, parallel, and mixed. The sub-deployment pipeline of horizontal orchestration is configured as serial mode, and the sub-deployment pipeline of vertical orchestration is configured as parallel mode. The mixed mode is a combination of serial and parallel modes. Each sub-deployment pipeline can add multiple atomic deployment tasks, and the script of the sub-deployment pipeline is generated by splicing task scripts and passed to Jenkins for execution. Atomic deployment tasks can also support serial or parallel execution configuration, so as to support the coordinated deployment of different versions and different applications.

[0102] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0103] 1) The collaborative deployment method of the present application determines the environment orchestration mode according to business needs, and then deploys multiple sub-deployment pipelines in the environment orchestration module, and deploys multiple atomic deployment tasks in each of the above sub-deployment pipelines. Multiple sub-deployment pipelines can be serially orchestrated, parallelly orchestrated, or serial-parallel mixed orchestration, and multiple atomic deployment tasks in each sub-deployment pipeline can support serial, parallel, or serial-parallel mixed execution. Collaborative deployment of multiple resources, multiple environments, and multiple versions is achieved.

[0104] 2) The collaborative deployment device of the present application determines the environment orchestration mode according to business needs by the determination unit. The first deployment unit deploys multiple sub-deployment pipelines in the environment orchestration module, and the second deployment unit deploys multiple atomic deployment tasks in each of the above sub-deployment pipelines. The multiple sub-deployment pipelines can be serially orchestrated, parallelly orchestrated, or serial-parallel mixed orchestration. The multiple atomic deployment tasks in each sub-deployment pipeline can support serial, parallel, or serial-parallel mixed execution. The collaborative deployment of multiple resources, multiple environments, and multiple versions is realized.

[0105] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A collaborative deployment method, characterized in that: include: Determine an environment orchestration mode according to business needs, wherein the environment orchestration mode includes a serial orchestration mode, a parallel orchestration mode, and a serial-parallel hybrid orchestration mode; Using the environment orchestration mode, deploy multiple sub-deployment pipelines in the environment orchestration module; Deploy multiple atomic deployment tasks in each of the sub-deployment pipelines, wherein the multiple atomic deployment tasks support serial or parallel or mixed serial and parallel execution; Before deploying the multiple atomic deployment tasks in each of the sub-deployment pipelines, the method further includes: Associating front-end building blocks with multiple code bases; Configuring different versions of sub-build pipelines in the front-end build module; Using the code in the code base to construct all or part of the atomic build tasks, and configuring a plurality of the atomic build tasks in each of the sub-build pipelines; Execute multiple atomic construction tasks to generate multiple media.

2. The method according to claim 1, characterized in that The atomic deployment task is used to deploy the medium on a resource.

3. The method according to claim 1, characterized in that After executing a plurality of the atomic construction tasks and generating a plurality of media, the method further includes: A plurality of the media are stored in a media repository.

4. The method according to any one of claims 1 to 3, characterized in that The multiple atomic construction tasks in each of the sub-construction pipelines support serial or parallel execution.

5. The method according to any one of claims 1 to 3, characterized in that The atomic construction task includes at least one of the following: Pull SVN or Git code, build with Maven or NPM, scan with SonarQube, and scan with Xray vulnerabilities.

6. The method according to claim 1, characterized in that After deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines, the method further includes: Execute each of the atomic deployment tasks.

7. A collaborative deployment device, characterized in that: include: A determination unit, configured to determine an environment orchestration mode according to business requirements, wherein the environment orchestration mode includes a serial orchestration mode, a parallel orchestration mode, and a serial-parallel hybrid orchestration mode; A first deployment unit, configured to deploy multiple sub-deployment pipelines in an environment orchestration module using the environment orchestration mode; A second deployment unit, configured to deploy a plurality of atomic deployment tasks in each of the sub-deployment pipelines, wherein the plurality of atomic deployment tasks support serial, parallel, or serial-parallel hybrid execution; The apparatus further comprises: an associating unit, configured to associate a front-end construction module with a plurality of code bases before deploying a plurality of atomic deployment tasks in each of the sub-deployment pipelines; A configuration unit, used to configure different versions of sub-build pipelines in the front-end build module; A construction unit, configured to construct all or part of the atomic construction tasks using the code in the code base, and configure a plurality of the atomic construction tasks in each of the sub-construction pipelines; The first execution unit is used to execute multiple atomic construction tasks to generate multiple media.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the collaborative deployment method according to any one of claims 1 to 6.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the collaborative deployment method described in any one of claims 1 to 6.