Application environment delivery method and device
By defining the required configuration files and scripts in the source code of the application version, an automated environment construction and deployment process is achieved, and the inconsistent configuration of multiple server environments caused by human intervention in the existing technology is solved, and the efficiency and resources of environment construction are improved. Utilization.
Patent Information
- Application Number
- CN202110849750.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2025-02-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There is a lot of human intervention in the existing application environment delivery process, resulting in inconsistent configuration of multiple server environments, which in turn causes production problems.
By defining the server resource files, middleware requirements files, basic environment test script files, and application version deployment script files required for deployment of the application version, the automated environment construction and deployment process is realized.
It realizes that when deploying the application version, the environment is automatically built, avoiding the problem of inconsistent multiple server environments, reducing the cost of environment construction, and improving resource utilization.
Smart Images

Figure CN113485726B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to an application environment delivery method and device. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] At present, the construction of a development environment often adopts the mechanism of "application + passive response": developers submit applications to the resource management department to apply for servers (usually takes 2-3 days for approval); after the server application is approved, some middleware required by the application needs to be manually installed, and the cost of environment construction is high. Different people manually log in to the server to modify the configuration. Over a long period of time, it is likely to cause differences in the configuration of multiple servers, and ultimately lead to production problems due to inconsistent environments. Summary of the invention
[0004] An application environment delivery method is provided in an embodiment of the present invention to solve the technical problem that the existing application environment delivery process is prone to inconsistent configuration of multiple server environments due to frequent human intervention. The method includes: defining the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required for application version deployment in the source code of the application version; applying for a server for the application version to be deployed according to the server resource files defined in the source code; installing the middleware required for the application version on the applied server according to the middleware requirement files defined in the source code; performing a basic environment test on the server after the middleware is installed according to the basic environment test script files defined in the source code; and deploying the application version on a server that has passed the basic environment test according to the application version deployment script files defined in the source code.
[0005] An embodiment of the present invention also provides an application environment delivery device to solve the technical problem that the existing application environment delivery process is prone to inconsistent configuration of multiple server environments due to frequent human intervention. The device includes: a configuration file definition module, which is used to define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required for application version deployment in the source code of the application version; a server resource application module, which is used to apply for a server for the application version to be deployed according to the server resource files defined in the source code; a middleware installation module, which is used to install the middleware required for the application version on the applied server according to the middleware requirement files defined in the source code; a basic environment testing module, which is used to perform basic environment testing on the server after the middleware is installed according to the basic environment testing script files defined in the source code; and an application version deployment module, which is used to deploy the application version on a server that has passed the basic environment test according to the application version deployment script files defined in the source code.
[0006] A computer device is also provided in an embodiment of the present invention to solve the technical problem that the existing application environment delivery process is prone to inconsistent configurations of multiple server environments due to frequent human intervention. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned application environment delivery method is implemented.
[0007] A computer-readable storage medium is also provided in an embodiment of the present invention to solve the technical problem that the existing application environment delivery process is prone to inconsistent configurations of multiple server environments due to frequent human intervention. The computer-readable storage medium stores a computer program for executing the above-mentioned application environment delivery method.
[0008] The application environment delivery method, apparatus, computer equipment and computer-readable storage medium provided in the embodiments of the present invention define the server resource files, middleware requirement files, basic environment test script files and application version deployment script files required for the deployment of the application version in the source code of the application version. When deploying the application version, the server of the application version to be deployed can be applied for according to the server resource files defined in the source code, and then the middleware required for the application version can be installed on the applied server according to the middleware requirement files defined in the source code. Then, according to the basic environment test script files defined in the source code, the basic environment test is performed on the server after the middleware is installed. Finally, according to the application version deployment script files defined in the source code, the application version is deployed on the server that has passed the basic environment test.
[0009] Compared with the application environment delivery solution of the prior art that requires manual intervention, in the embodiment of the present invention, the basic environment resources required for the deployment of the application version are defined in the source code of the application version in the form of a configuration file. This can automatically complete the environment setup required for deploying the application version according to the configuration file defined in the source code of the application version when deploying the application version, thereby avoiding the problem of inconsistent environments of multiple server versions. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0011] Figure 1 A flow chart of an application environment delivery method provided in an embodiment of the present invention;
[0012] Figure 2 A flow chart of an optional application environment delivery method provided in an embodiment of the present invention;
[0013] Figure 3 A flow chart of an optional application environment delivery method provided in an embodiment of the present invention;
[0014] Figure 4 A flow chart of an application environment delivery method based on Jenkins provided in an embodiment of the present invention;
[0015] Figure 5 A schematic diagram of an application environment delivery device provided in an embodiment of the present invention;
[0016] Figure 6 A schematic diagram of an optional application environment delivery device provided in an embodiment of the present invention;
[0017] Figure 7 A schematic diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0018] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0019] Before introducing the embodiments of the present invention, the terms involved in the embodiments of the present invention are first explained as follows:
[0020] Infrastructure as Code (IaC): It is a way to build and manage dynamic infrastructure using new technologies. It treats the infrastructure, tools, services, and infrastructure management itself as a software system, and adopts software engineering practices to manage changes to the system in a structured and secure way.
[0021] Jenkins Pipeline: It is a set of plug-ins in Jenkins. Through pipeline, you can define a process, which includes multiple stages. Each stage completes one task, thus realizing an automated CI / CD process.
[0022] Dynamic infrastructure platform: A system that provides computing resources (including servers, storage, and networks) and supports programmatic allocation and management of these resources through APIs. In the embodiment of the present invention, it refers to the cloud platform of the development environment (oneDCM system).
[0023] Ansible: A Python-based automated operation and maintenance tool that can automatically and batch execute user-defined tasks on specific nodes.
[0024] Playbook: A script is a configuration file that defines a task set in Ansible. It is written in YAML and defines a task list consisting of a series of tasks and parameters.
[0025] Inventory: resource list, the list of controlled nodes managed by Ansible, the default is / etc / Ansible / hosts file.
[0026] Testinfra: An infrastructure testing framework, a python library that uses the powerful pytest test engine. Testinfra supports Ansible as a backend and can directly use Ansible's Inventory file to test the machines defined in it.
[0027] Product library: a unified warehouse for storing build products, used to store installation packages of application versions in the embodiment of the present invention.
[0028] An embodiment of the present invention provides an application environment delivery method. Figure 1 A flow chart of an application environment delivery method provided in an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method comprises the following steps:
[0029] S101, define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required by the application version in the source code of the application version.
[0030] In the specific implementation, the installation package of each application version to be deployed contains, in addition to its own business code, the following configuration files: server resource file (Infrastructure.yml), middleware requirement file (playbook-xx.yml), basic environment test script (test_xx.py), and application automatic deployment script.
[0031] S102: Apply for a server for the application version to be deployed according to the server resource file defined in the source code.
[0032] It should be noted that the server resource file in the embodiment of the invention is used to define how many servers the current application needs to be deployed on and what specifications of servers are required.
[0033] S103, installing the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code.
[0034] It should be noted that the middleware requirement file in the embodiment of the present invention is used to define which middleware needs to be installed on which servers (including downloading, installing, configuring, starting, etc. of the middleware). Note: The installation of the middleware of the present invention is based on the Ansible tool, so the middleware installation requirements are defined through the playbook in Ansible, and each middleware defines a playbook file, such as xx in the file name may be nginx, tomcat, etc.
[0035] S104, performing a basic environment test on the server after the middleware is installed according to the basic environment test script file defined in the source code.
[0036] It should be noted that the basic environment test script file in the embodiment of the present invention is used to define the test script for the basic environment after the middleware is installed (the script is developed based on the testinfra test framework), such as testing whether nginx is installed successfully, whether it has been started, whether the port number is correct, etc.
[0037] S105, deploying the application version on a server that has passed the basic environment test according to the application version deployment script file defined in the source code.
[0038] It should be noted that the application version deployment script file in the embodiment of the present invention is used to define a script for automatically deploying the application version, so as to realize automatic deployment of the application version.
[0039] In one embodiment, the application environment delivery method provided in the embodiment of the present invention can implement the installation of middleware and the deployment of application versions based on Ansible.
[0040] Since the server is dynamically created by connecting to the cloud platform, the server IP is unknown before application, and the Ansible execution script needs to define the list of machines to be executed through the inventory file. Therefore, in the specific implementation, the IP can be dynamically transferred and the inventory can be dynamically generated through a middleware.yaml file.
[0041] In order to implement automated testing of an application, in one embodiment, Figure 2 As shown, after the application version is deployed on a server that has passed the basic environment test according to the application version deployment script file defined in the source code, the application environment delivery method provided in the embodiment of the present invention further includes the following steps:
[0042] S106, performing automated testing on the deployed application version;
[0043] S107, generating an automated test report according to the automated test results.
[0044] In order to achieve dynamic sharing of infrastructure resources, in one embodiment, Figure 3 As shown, after generating an automated test report according to the automated test results, the application environment delivery method provided in the embodiment of the present invention further includes the following steps:
[0045] S108, destroying and releasing the server resources on which the application version is deployed.
[0046] In one embodiment, the application environment delivery method provided in the embodiment of the present invention may also include the following steps: defining the basic environment construction pipeline of the application version by writing a Jenkins file, wherein the basic environment construction pipeline includes at least: server resource application, middleware installation, basic environment testing and application version deployment.
[0047] Furthermore, the above basic environment construction pipeline also includes: application version testing and server resource release.
[0048] In the embodiment of the present invention, by writing a Jenkins file to define an automatic environment construction pipeline, one-click delivery of the application environment can be achieved. The links on the pipeline include: pulling source code, server application, middleware installation, basic environment testing, automatic deployment of application version, automatic testing of application version, and destruction of environment resources. Among them, automatic testing of application version and destruction of environment resources are optional steps.
[0049] Figure 4 A flow chart of a Jenkins-based application environment delivery method provided in an embodiment of the present invention is shown in FIG. Figure 4As shown, Jenkins is responsible for the unified scheduling of the pipeline, and defines each link on the pipeline through the Jenkins file; TGit is an enterprise-level source code management warehouse, which stores the application source code and the infrastructure definition file in the source code, and is used to pull the source code from TGit in the first step of the pipeline; the dynamic infrastructure platform (oneDCM) is a cloud platform for enterprise-level development environment, which provides functions such as server creation, destruction, and resource quota management, and provides these capabilities to the outside world. API, in the embodiment of the present invention, the server application and destruction links are all implemented by calling the RestAPI of oneDCM in the pipeline; Ansible is a python-based automated operation and maintenance tool for executing user-defined tasks on a specific server list. In the present invention, the installation and deployment of middleware are all based on Ansible, that is: the execution of Ansible's playbook is called by the pipeline, and the playbook files installed by the middleware and the playbook files for automatic deployment are all defined in the application version; the product library is a unified product warehouse of the enterprise, which is used to store the version package of the application. The automatic deployment link will pull the version from the product library for automatic deployment; TestInfra is a basic environment testing framework. Testinfra supports Ansible as the backend, and can directly use Ansible's inventory file to test the machines defined therein. The "basic environment test" link of the pipeline in the embodiment of the present invention calls up the basic environment test script in the application version (based on the test case written by testinfra) to perform a basic environment smoke test; Newman is a node.js library launched by Postman, which can call up Postman's json test case file for execution on the command line. In the embodiment of the present invention, the pipeline calls Newman to call up the execution of the Postman automation interface test case.
[0050] According to the application environment interaction method provided in the embodiment of the present invention, based on the idea of "infrastructure as code", a set of application environment rapid delivery system can be built, and the application's demand for infrastructure resources is defined in the application version through a "configuration file", and then with the DevOps automated pipeline and dynamic infrastructure platform (cloud platform), the dynamic creation, change and destruction of environmental resources can be automatically completed, realizing the "self-service" of environmental management. It specifically includes the following two parts:
[0051] 1. Application version transformation: Define the following configuration files in the source code of each application version:
[0052] 1) Server resource definition file (Infrastructure.yml): This file defines how many servers and their specifications are required for the current application.
[0053] 2) Middleware requirement definition file (playbook-xx.yml): This file defines which middleware needs to be installed on which servers (including downloading, installing, configuring, and starting the middleware). Note: The installation of the middleware in the present invention is based on the Ansible tool, so the middleware installation requirements are defined through the playbook in Ansible. Each middleware defines a playbook file, such as xx in the file name may be nginx, tomcat, etc.
[0054] 3) Basic environment test script (test_xx.py): This file defines the test script for the basic environment after the middleware is installed (the script is developed based on the testinfra test framework), such as testing whether nginx is installed successfully, whether it has been started, whether the port number is correct, etc.
[0055] 4) Application deployment script file: defines the script for automatically deploying the application version.
[0056] Second, define an environment to automatically build a pipeline by writing a Jenkins file. The pipeline includes:
[0057] 1) Pull source code: Pull the application source code from the git repository, including the configuration files defined in step 1 above.
[0058] 2) Server application: Parse the "Server Resource Definition File (Infrastructure.yml)" in the application version and call the oneDCM (cloud platform) API to apply for the server.
[0059] 3) Middleware installation: According to the "middleware requirement definition file (playbook-xx.yml)" in the application version, call the playbook through Ansible to automatically complete the installation and configuration of the middleware on the corresponding server.
[0060] 4) Basic environment test: The basic environment test scripts (test_xx.py) in the application version are called up in the pipeline in sequence to complete the smoke test of the basic environment.
[0061] 5) Automatic deployment: Jenkins calls Ansible to implement it. Ansible will execute the deployment script defined in the application version in the form of playbook to complete the automatic deployment of the application to the server.
[0062] 6) Automated testing: In the pipeline, Newman is used to call the Postman automated interface test case, and the generated automated test report is deployed to nginx for easy visual viewing in the browser.
[0063] 7) Automatic environment destruction: After the automated test is completed and the report is generated, the oneDCM (cloud platform) API is called to complete the destruction of the server, release resources in time, and realize dynamic resource sharing.
[0064] In the embodiment of the present invention, the requirements for environment provisioning are fully incorporated into the definition of the application version, and the dynamic creation, modification and destruction of environment resources are automatically completed through an automated pipeline. According to experiments, the delivery from resource quota to a complete testable environment can be completed within 1 hour, thereby reducing the cost of environment construction and improving resource utilization.
[0065] Based on the same inventive concept, an application environment delivery device is also provided in the embodiment of the present invention, as described in the following embodiment. Since the principle of solving the problem by the device is similar to that of the application environment delivery method, the implementation of the device can refer to the implementation of the application environment delivery method, and the repeated parts will not be repeated.
[0066] Figure 5 Schematic diagram of an application environment delivery device provided in an embodiment of the present invention, such as Figure 5 As shown, the device includes: a configuration file definition module 51, a server resource application module 52, a middleware installation module 53, a basic environment testing module 54 and an application version deployment module 55.
[0067] Among them, the configuration file definition module 51 is used to define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required by the application version in the source code of the application version; the server resource application module 52 is used to apply for the server of the application version to be deployed according to the server resource files defined in the source code; the middleware installation module 53 is used to install the middleware required by the application version on the applied server according to the middleware requirement files defined in the source code; the basic environment testing module 54 is used to perform basic environment testing on the server after the middleware is installed according to the basic environment testing script files defined in the source code; the application version deployment module 55 is used to deploy the application version on the server that has passed the basic environment test according to the application version deployment script files defined in the source code.
[0068] In one embodiment, Figure 6 As shown, the application environment delivery device provided in the embodiment of the present invention also includes: an application version automation testing module 56, which is used to perform automation testing on the deployed application version; and a test report generation module 57, which is used to generate an automation test report according to the automation test results.
[0069] In one embodiment, Figure 6As shown, the application environment delivery device provided in the embodiment of the present invention further includes: a server resource release module 58, which is used to destroy and release the server resources for deploying the application version.
[0070] In one embodiment, in the application environment delivery device provided in the embodiment of the present invention, the middleware installation module 53 is also used to implement the installation of the middleware based on Ansible; the application version deployment module is also used to implement the deployment of the application version based on Ansible.
[0071] In one embodiment, Figure 6 As shown, the application environment delivery device provided in the embodiment of the present invention also includes: a basic environment construction pipeline definition module 59, which is used to define the basic environment construction pipeline of the application version by writing a Jenkins file, wherein the basic environment construction pipeline at least includes: server resource application, middleware installation, basic environment testing and application version deployment.
[0072] Optionally, the basic environment building pipeline defined by the basic environment building pipeline definition module 59 also includes: application version testing and server resource release.
[0073] Based on the same inventive concept, a computer device is also provided in an embodiment of the present invention to solve the technical problem that the existing application environment delivery process is prone to inconsistent configuration of multiple server environments due to frequent human intervention. Figure 7 A schematic diagram of a computer device provided in an embodiment of the present invention is shown in FIG. Figure 7 As shown, the computer device 70 includes a memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor 702. When the processor 702 executes the computer program, the above-mentioned application environment delivery method is implemented.
[0074] Based on the same inventive concept, a computer-readable storage medium is also provided in an embodiment of the present invention to solve the technical problem that the existing application environment delivery process is prone to inconsistent configurations of multiple server environments due to frequent human intervention. The computer-readable storage medium stores a computer program for executing the above-mentioned application environment delivery method.
[0075] To summarize, the application environment delivery method, apparatus, computer equipment, and computer-readable storage medium provided in the embodiments of the present invention define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required for application version deployment in the source code of the application version. When deploying the application version, the server for the application version to be deployed can be applied for according to the server resource files defined in the source code, and then the middleware required for the application version can be installed on the applied server according to the middleware requirement files defined in the source code. Then, according to the basic environment test script files defined in the source code, the server after the middleware is installed is tested for the basic environment. Finally, according to the application version deployment script files defined in the source code, the application version can be deployed on the server that has passed the basic environment test.
[0076] Compared with the application environment delivery solution of the prior art that requires manual intervention, in the embodiment of the present invention, the basic environment resources required for the deployment of the application version are defined in the source code of the application version in the form of a configuration file. This can automatically complete the environment setup required for deploying the application version according to the configuration file defined in the source code of the application version when deploying the application version, thereby avoiding the problem of inconsistent environments of multiple server versions.
[0077] The embodiments of the present invention can achieve but are not limited to the following technical effects:
[0078] 1) Improve the efficiency of environment construction: The environment provisioning is no longer a "application + passive response" mechanism, but developer customization and self-service.
[0079] 2) Ensure environmental consistency: Because the environment is defined based on the same set of source code, environmental consistency is guaranteed.
[0080] 3) Improve resource utilization: Because the cost of destroying and rebuilding the environment becomes very low, each project team is more willing to apply for resources on demand and release them after use, forming a dynamic flow and sharing of resources.
[0081] 4) The history of environmental changes is traceable: Environmental change information is included in version control along with the source code, and the change history is traceable and auditable.
[0082] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0083] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.
[0084] 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.
[0085] 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.
[0086] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for delivering an application environment, characterized in that: include: Define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required for application version deployment in the source code of the application version; Apply for a server to deploy the application version according to the server resource file defined in the source code; According to the middleware requirement file defined in the source code, install the middleware required by the application version on the applied server; Perform basic environment testing on the server after installing the middleware according to the basic environment testing script file defined in the source code; Deploy the application version on a server that has passed the basic environment test according to the application version deployment script file defined in the source code; The installation package of each application version to be deployed contains, in addition to its own business code, the following configuration files: server resource files, middleware requirement files, basic environment test scripts, and application automatic deployment scripts; Implement middleware installation and application version deployment based on Ansible; The method further comprises: Define the basic environment construction pipeline of the application version by writing a Jenkins file, wherein the basic environment construction pipeline at least includes: server resource application, middleware installation, basic environment testing and application version deployment; The basic environment construction pipeline also includes: application version testing and server resource release.
2. The method according to claim 1, characterized in that After deploying the application version on a server that has passed the basic environment test according to the application version deployment script file defined in the source code, the method further includes: Perform automated testing on deployed application versions; Generate automated test reports based on automated test results.
3. The method according to claim 2, characterized in that After generating an automated test report according to the automated test results, the method further includes: Destroy and release the server resources that deployed the application version.
4. An application environment delivery device, characterized in that: include: A configuration file definition module is used to define the server resource files, middleware requirement files, basic environment test script files, and application version deployment script files required for application version deployment in the source code of the application version; A server resource application module, used to apply for a server to deploy the application version according to the server resource file defined in the source code; A middleware installation module, used to install the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code; A basic environment test module, used to perform a basic environment test on the server after the middleware is installed according to the basic environment test script file defined in the source code; An application version deployment module, used to deploy the application version on a server that has passed the basic environment test according to the application version deployment script file defined in the source code; The installation package of each application version to be deployed contains, in addition to its own business code, the following configuration files: server resource files, middleware requirement files, basic environment test scripts, and application automatic deployment scripts; The middleware installation module is also used to implement the installation of the middleware based on Ansible; the application version deployment module is also used to implement the deployment of the application version based on Ansible; The device also includes: A basic environment building pipeline definition module is used to define the basic environment building pipeline of the application version by writing a Jenkins file, wherein the basic environment building pipeline at least includes: server resource application, middleware installation, basic environment testing and application version deployment; The basic environment construction pipeline also includes: application version testing and server resource release.
5. The device according to claim 4, characterized in that The device also includes: Application version automated testing module, used to perform automated testing on deployed application versions; The test report generation module is used to generate an automated test report based on the automated test results.
6. The device according to claim 5, characterized in that The device also includes: The server resource release module is used to destroy and release the server resources where the application version is deployed.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the application environment delivery method described in any one of claims 1 to 3 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the application environment delivery method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Distributed application program automatic deployment method based on Jenkins
CN112148311A
Jenkins and K3S-based software environment rapid deployment method
CN112346752A