CN116541023A - Application program release method, device, equipment and storage medium - Google Patents

Application program release method, device, equipment and storage medium Download PDF

Info

Publication number
CN116541023A
CN116541023A CN202310820524.4A CN202310820524A CN116541023A CN 116541023 A CN116541023 A CN 116541023A CN 202310820524 A CN202310820524 A CN 202310820524A CN 116541023 A CN116541023 A CN 116541023A
Authority
CN
China
Prior art keywords
deployment
deployed
application program
application
deployment environment
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
CN202310820524.4A
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.)
Beijing Haoxin Internet Hospital Co ltd
Original Assignee
Beijing Haoxin Internet Hospital Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Haoxin Internet Hospital Co ltd filed Critical Beijing Haoxin Internet Hospital Co ltd
Priority to CN202310820524.4A priority Critical patent/CN116541023A/en
Publication of CN116541023A publication Critical patent/CN116541023A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides an application program release method, an application program release device, application program release equipment and a storage medium, and belongs to the technical field of application program release; after packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; the deployment environment, the server types and the deployment list are imported into a Jenkins plug-in, and an information address and an account password are set through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of a Jenkins plug-in, and selecting an information address and an account password in the target deployment environment; based on the information address and the account password, the application program to be deployed is deployed in the target deployment environment, and the deployment of the application program in the target deployment environment is automatically completed by selecting the deployment parameters by a user, so that the application program is not influenced by the target deployment environment, and the deployment efficiency is effectively improved.

Description

Application program release method, device, equipment and storage medium
Technical Field
The present invention relates to the field of application publishing technologies, and in particular, to an application publishing method, device, equipment and storage medium.
Background
The life cycle of an item is code submission, construction, unit testing, deployment, until it is taken off line. The online release of the item does not mean that the project is finished, but a real start, and the update and version iteration is continuously performed. The deployment environment is various, for example, the constructed release package may be deployed to different environments such as a win machine, a linux server, a cloud environment, a container environment and the like.
However, deployment of different environments is complex for developers, and the deployment process is particularly time consuming, resulting in relatively inefficient deployment.
Disclosure of Invention
The invention provides an application program release method, an application program release device, and a storage medium, which are used for solving the defect of low application program deployment efficiency in the prior art.
The invention provides an application program release method, which comprises the following steps:
packaging and testing codes of the application program to be deployed;
after the packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list;
importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in;
receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment;
and deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
According to the application program publishing method provided by the invention, the receiving the target deployment environment selected on the selection page of the Jenkins plug-in, and the selecting the information address and the account password in the target deployment environment comprise the following steps:
creating a pipeline type task in the Jenkins plug-in;
determining a target deployment environment in the pipeline type task;
and inputting an information address to be constructed in the pipeline type task, and pulling the account password.
According to the application program publishing method provided by the invention, the deploying the application program to be deployed in the target deployment environment based on the information address and the account password comprises the following steps:
creating a Jenkins file in a root directory of codes of the application program to be deployed based on the information address and the account password;
and deploying the application program to be deployed in the target deployment environment based on the Jenkins file.
According to the application program publishing method provided by the invention, before the application program to be deployed is deployed in the target deployment environment based on the information address and the account password, the method further comprises:
introducing an application program release function code into the pipeline script;
processing the release flow of the release function code of the application program based on the function label content pipeline to generate an application function code step;
and verifying the application program to be deployed through the step of the application function code.
According to the application program release method provided by the invention, the pipeline type task is created in the Jenkins plug-in, and the method comprises the following steps:
determining the running logic, the running stage, the container, the step and the execution position of the pipeline in the Jenkins plug-in;
based on the execution logic, the execution phase, the container, the step, and the execution location, a pipeline type task is generated.
According to the application program publishing method provided by the invention, the deploying the application program to be deployed in the target deployment environment comprises the following steps:
triggering compiling construction, testing and delivery of the codes by manually clicking deployment parameters;
after completing the compilation build, the test, and the delivery, the application to be deployed is deployed in the target deployment environment.
According to the application program release method provided by the invention, the deployment environment comprises at least one of a linux, a win, a cloud environment and a k8s cluster.
The invention also provides an application program release device, which comprises:
the testing module is used for packaging and testing codes of the application program to be deployed;
the selection module is used for acquiring deployment parameters selected by a user on the web page after the packaging and testing are completed, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list;
the importing module is used for importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in;
the receiving module is used for receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment;
the deployment module is used for deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor realizes the application program release method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements an application distribution method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of publishing an application as described in any of the above.
The invention provides an application program release method, an application program release device and a storage medium, wherein the method comprises the steps of packaging and testing codes of an application program to be deployed; after packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; the deployment environment, the server types and the deployment list are imported into a Jenkins plug-in, and an information address and an account password are set through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of a Jenkins plug-in, and selecting an information address and an account password in the target deployment environment; based on the information address and the account password, the application program to be deployed is deployed in the target deployment environment, and the deployment of the application program to be deployed in the target deployment environment is automatically completed by selecting the deployment parameters by a user, so that the application program to be deployed is not influenced by the target deployment environment, and the deployment efficiency is effectively improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an application publishing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an application publishing device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An application publishing method, apparatus, device and storage medium of the present invention are described below with reference to fig. 1-3.
Fig. 1 is a flow chart of an application program publishing method according to an embodiment of the present invention.
As shown in fig. 1, the method for publishing an application program provided by the embodiment of the invention mainly includes the following steps:
101. and packaging and testing codes of the application program to be deployed.
In a specific implementation process, defining an application program to be deployed as an application program to be deployed, firstly submitting codes by a developer, then selecting to package the codes of the application program to be deployed, and testing after the packaging is completed so as to ensure the correctness and the integrity of the codes of the application program to be deployed.
102. After packaging and testing are completed, deployment parameters selected by the user on the web page are obtained, wherein the deployment parameters comprise a deployment environment, server types and a deployment list.
After the packaging and testing are passed, the code indicating the current application program to be deployed can be deployed into the related environment, and the deployment parameters selected by the user on the web page are required to be acquired at the moment, so that the deployment of the application program to be deployed in the target environment is completed based on the deployment parameters. The deployment parameters include a deployment environment, a server type, a deployment list, and the like, where the deployment environment refers to an environment in which an application to be deployed runs, and includes at least one of a linux, a win, a cloud environment, and a k8s cluster, and of course, may also include other deployment environments, which are not illustrated one by one in the embodiment. The server types include a plurality of different servers, including android, ISO servers, etc., for the handset. The deployment list refers to the installation location, ip address, etc. when the application is deployed.
For the user, the user only needs to select the target deployment environment, the server type and the corresponding deployment list on the web page. For example, the deployment environment is a cloud environment, the server type is a linux type, and the deployment list is 192.168.100.1 and 192.168.100.2.
103. And importing the deployment environment, the server types and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in.
After the user selects the deployment parameters, the deployment environment, the server type and the deployment list are imported into the Jenkins plugin, and then the user clicks the global setting information address and the account password. Therefore, the information address and the account password are set through the Jenkins plug-in.
104. And receiving a target deployment environment selected by a selection page of the Jenkins plug-in, and selecting an information address and an account password in the target deployment environment.
When the deployment is clicked, the Jenkins plug-in pops up a selection page, including deployment environments such as cloud environments, and displays all information addresses and account passwords in the target environments according to the target deployment environments selected by the user. For the system, the target deployment environment selected on the selection page of the Jenkins plugin is received, namely, the target deployment environment in which the user wants the application program to run is selected, and then the information address and the account password which are set in advance are selected from the target environment.
105. And deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
After the information address and the account password are selected, the application program to be deployed can be deployed in the target environment, and the application program to be deployed is deployed according to the information address. After the application program to be deployed is deployed through the information address and the account password, the application program to be deployed can be normally operated.
The application program release method provided by the embodiment comprises the steps of packaging and testing codes of an application program to be deployed; after packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; the deployment environment, the server types and the deployment list are imported into a Jenkins plug-in, and an information address and an account password are set through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of a Jenkins plug-in, and selecting an information address and an account password in the target deployment environment; based on the information address and the account password, the application program to be deployed is deployed in the target deployment environment, and the deployment of the application program to be deployed in the target deployment environment is automatically completed by selecting the deployment parameters by a user, so that the application program to be deployed is not influenced by the target deployment environment, and the deployment efficiency is effectively improved.
Further, on the basis of the foregoing embodiment, in this embodiment, receiving a target deployment environment selected on a selection page of a Jenkins plug-in, and selecting an information address and an account password in the target deployment environment includes: creating a pipeline type task in a Jenkins plug-in; determining a target deployment environment in the pipeline type task; and inputting an information address to be constructed in the pipeline type task, and pulling an account password.
Wherein creating a pipeline type task in the Jenkins plug-in includes: determining the running logic, the running stage, the container, the step and the execution position of the pipeline in the Jenkins plug-in; based on the execution logic, the execution phase, the container, the step, and the execution location, a pipeline type task is generated.
Specifically, pipeline represents the entire pipeline, including the operating logic of the entire pipeline. The stage part refers to the operation stage, i.e. the stage of the pipeline, and each stage has a corresponding name, such as build. The pages part represents a container, and the pages part at least contains one page. The steps section represents steps representing containers of one or more specific steps (steps) in the phase. The steps part contains at least one step, e.g. by echo representing one step, there is one and only one step in one stage. The agent section refers to an execution position, and indicates an execution position (Jenkins agent) of the specified pipeline. Thus, by running five parts of logic, run phase, container, step and execution position, a pipeline type task can be generated. The pipeline type task obtained by executing the steps of compiling, packaging, testing, outputting a test report and the like is indispensable in running logic, running stage, container, step and execution position, and high-efficiency running after application program deployment is completed is ensured.
After the creation of the pipeline type task is completed, selecting a target deployment environment in the pipeline type task, inputting an information address which needs to be built, namely a git address, in the pipeline type task, and pulling an account password, namely an account password of a code. The method comprises the steps that an application program to be deployed is deployed in a target deployment environment based on an information address and an account number password, and a Jenkins file is created in a root directory of codes of the application program to be deployed based on the information address and the account number password; based on the Jenkins file, the application program to be deployed is deployed in the target deployment environment, so that the application program is released to a machine in a corresponding environment.
Before the application program to be deployed is deployed in the target deployment environment based on the information address and the account number password, the method further comprises the following steps: introducing an application program release function code into the pipeline script; processing the release flow of the application program release function code based on the function label content pipeline to generate an application function code step; and verifying the application program to be deployed through an application function code step, if the verification is passed, issuing the corresponding application program, and if the verification is not passed, not allowing the application program to be issued, and modifying and debugging the application program to ensure the safe operation of the application program.
Further, on the basis of the above embodiment, the deploying the application to be deployed in the target deployment environment in the present embodiment includes: triggering compiling construction, testing and delivery of codes by manually clicking deployment parameters; after the compilation build, test, and delivery are completed, the application to be deployed is deployed in the target deployment environment.
Specifically, in the release process of the application program, the click parameter can be selected to trigger the compiling construction, the test, the delivery and the deployment of the application package manually, so that the release efficiency of the version is improved.
Further, when the codes of the application program to be deployed are packaged and tested, the language type of the codes of the application program to be deployed is determined first, codes of the same language type are made into code templates, for example, the type of java language can be made into a template, and the node type is used as a template. And then uniformly adopting each stage step in the function class packaging code template, namely putting a group of operations into a function, conveniently, clearly and intuitively observing the whole automatic construction process, and rapidly positioning and modifying the stage codes. And then the code template is extracted from the server end and is independently put on the git for management and maintenance, so that the code of the application program to be deployed is packaged, and the version management and examination of the code are realized.
The application program release method provided by the invention can be applied to various server environments. Where a minimum of one machine is used as a server, the system may be win, linux, mac without mandatory requirements. The data storage system may exist on a local server or may be on a cloud or other network server. The server end can select Jenkins to use, plug-in modules are uploaded in plug-ins, then the plug-ins enter into a construction page to click and release the construction page to a certain environment or the constructed application package is released to each environment in a parameter transmission mode, and accordingly version release efficiency is effectively improved. Jenkins can also use a cic platform, then enter into a construction page to click and release to a certain environment or release the constructed application package to each environment by using a parameter transmission mode, so that the release efficiency of the version is improved. The cic is short for continuous integration and continuous deployment, and refers to a series of scripts which are automatically executed in the development process to reduce the probability of introducing bug in the development, and manual intervention is reduced as much as possible in the process from development to deployment of new codes.
Based on the same general inventive concept, the present invention also protects an application distribution device, and the application distribution device provided by the present invention is described below, and the application distribution device described below and the application distribution method described above may be referred to correspondingly.
Fig. 2 is a schematic structural diagram of an application publishing device according to an embodiment of the present invention.
As shown in fig. 2, an application publishing device provided by an embodiment of the present invention includes:
a test module 201, configured to package and test codes of an application program to be deployed;
a selection module 202, configured to obtain deployment parameters selected by a user on a web page after packaging and testing are completed, where the deployment parameters include a deployment environment, a server type, and a deployment list;
the importing module 203 is configured to import the deployment environment, the server type, and the deployment list into a Jenkins plug-in, and set an information address and an account password through the Jenkins plug-in;
the receiving module 204 is configured to receive a target deployment environment selected on a selection page of the Jenkins plug-in, and select an information address and an account password in the target deployment environment;
the deployment module 205 is configured to deploy the application to be deployed in the target deployment environment based on the information address and the account password.
The application program publishing device provided by the embodiment comprises the steps of packaging and testing codes of an application program to be deployed; after packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; the deployment environment, the server types and the deployment list are imported into a Jenkins plug-in, and an information address and an account password are set through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of a Jenkins plug-in, and selecting an information address and an account password in the target deployment environment; based on the information address and the account password, the application program to be deployed is deployed in the target deployment environment, and the deployment of the application program to be deployed in the target deployment environment is automatically completed by selecting the deployment parameters by a user, so that the application program to be deployed is not influenced by the target deployment environment, and the deployment efficiency is effectively improved.
Further, the receiving module 204 in this embodiment is specifically configured to:
creating a pipeline type task in the Jenkins plug-in;
determining a target deployment environment in the pipeline type task;
and inputting an information address to be constructed in the pipeline type task, and pulling the account password.
Further, the deployment module 205 in this embodiment is specifically configured to:
creating a Jenkins file in a root directory of codes of the application program to be deployed based on the information address and the account password;
and deploying the application program to be deployed in the target deployment environment based on the Jenkins file.
Further, the embodiment further includes a verification module, configured to:
introducing an application program release function code into the pipeline script;
processing the release flow of the release function code of the application program based on the function label content pipeline to generate an application function code step;
and verifying the application program to be deployed through the step of the application function code.
Further, the receiving module 204 in this embodiment is specifically further configured to:
determining the running logic, the running stage, the container, the step and the execution position of the pipeline in the Jenkins plug-in;
based on the execution logic, the execution phase, the container, the step, and the execution location, a pipeline type task is generated.
Further, the deployment module 205 in this embodiment is specifically configured to:
triggering compiling construction, testing and delivery of the codes by manually clicking deployment parameters;
after completing the compilation build, the test, and the delivery, the application to be deployed is deployed in the target deployment environment.
Further, the deployment environment in this embodiment includes at least one of linux, win, cloud environment and k8s cluster.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 3, the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to perform an application publishing method comprising: packaging and testing codes of the application program to be deployed; after the packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment; and deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute an application publishing method provided by the above methods, and the method includes: packaging and testing codes of the application program to be deployed; after the packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment; and deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the application publishing method provided by the above methods, the method comprising: packaging and testing codes of the application program to be deployed; after the packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list; importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in; receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment; and deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An application publishing method, comprising:
packaging and testing codes of the application program to be deployed;
after the packaging and testing are completed, acquiring deployment parameters selected by a user on the web page, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list;
importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in;
receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment;
and deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
2. The application publishing method of claim 1, wherein the receiving the target deployment environment selected on the selection page of the Jenkins plug-in, selecting the information address and the account password in the target deployment environment, comprises:
creating a pipeline type task in the Jenkins plug-in;
determining a target deployment environment in the pipeline type task;
and inputting an information address to be constructed in the pipeline type task, and pulling the account password.
3. The application publishing method of claim 2, wherein the deploying the application to be deployed in the target deployment environment based on the information address and the account password comprises:
creating a Jenkins file in a root directory of codes of the application program to be deployed based on the information address and the account password;
and deploying the application program to be deployed in the target deployment environment based on the Jenkins file.
4. The application publishing method of claim 2, wherein the deploying the application to be deployed in the target deployment environment based on the information address and the account password further comprises:
introducing an application program release function code into the pipeline script;
processing the release flow of the release function code of the application program based on the function label content pipeline to generate an application function code step;
and verifying the application program to be deployed through the step of the application function code.
5. The application publishing method of claim 2, wherein creating a pipeline type task in the Jenkins plug-in comprises:
determining the running logic, the running stage, the container, the step and the execution position of the pipeline in the Jenkins plug-in;
based on the execution logic, the execution phase, the container, the step, and the execution location, a pipeline type task is generated.
6. The application publishing method of claim 1, wherein the deploying the application to be deployed in the target deployment environment comprises:
triggering compiling construction, testing and delivery of the codes by manually clicking deployment parameters;
after completing the compilation build, the test, and the delivery, the application to be deployed is deployed in the target deployment environment.
7. The application publishing method of any of claims 1-6, wherein the deployment environment comprises at least one of a linux, a win, a cloud environment, and a k8s cluster.
8. An application issuing apparatus, comprising:
the testing module is used for packaging and testing codes of the application program to be deployed;
the selection module is used for acquiring deployment parameters selected by a user on the web page after the packaging and testing are completed, wherein the deployment parameters comprise a deployment environment, a server type and a deployment list;
the importing module is used for importing the deployment environment, the server type and the deployment list into a Jenkins plug-in, and setting an information address and an account password through the Jenkins plug-in;
the receiving module is used for receiving a target deployment environment selected on a selection page of the Jenkins plug-in, and selecting the information address and the account password in the target deployment environment;
the deployment module is used for deploying the application program to be deployed in the target deployment environment based on the information address and the account password.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application distribution method of any of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the application distribution method according to any of claims 1 to 7.
CN202310820524.4A 2023-07-06 2023-07-06 Application program release method, device, equipment and storage medium Pending CN116541023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310820524.4A CN116541023A (en) 2023-07-06 2023-07-06 Application program release method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310820524.4A CN116541023A (en) 2023-07-06 2023-07-06 Application program release method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116541023A true CN116541023A (en) 2023-08-04

Family

ID=87458242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310820524.4A Pending CN116541023A (en) 2023-07-06 2023-07-06 Application program release method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116541023A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200104107A1 (en) * 2018-09-28 2020-04-02 Atlassian Pty Ltd Systems and methods for deploying software products to environments
CN111917837A (en) * 2020-07-13 2020-11-10 西安即刻易用网络科技有限公司 Web micro application program publishing system and implementation method thereof
CN112860311A (en) * 2021-02-04 2021-05-28 京东数字科技控股股份有限公司 Application program issuing method and device and electronic equipment
CN114356346A (en) * 2022-01-04 2022-04-15 北京金山云网络技术有限公司 Application program deployment method, device, storage medium and electronic equipment
CN115080060A (en) * 2022-07-20 2022-09-20 中国工商银行股份有限公司 Application program distribution method, device, equipment, storage medium and program product
CN116089097A (en) * 2023-04-11 2023-05-09 睿云联(厦门)网络通讯技术有限公司 Cloud platform deployment method, equipment and medium based on multiple components and environments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200104107A1 (en) * 2018-09-28 2020-04-02 Atlassian Pty Ltd Systems and methods for deploying software products to environments
CN111917837A (en) * 2020-07-13 2020-11-10 西安即刻易用网络科技有限公司 Web micro application program publishing system and implementation method thereof
CN112860311A (en) * 2021-02-04 2021-05-28 京东数字科技控股股份有限公司 Application program issuing method and device and electronic equipment
CN114356346A (en) * 2022-01-04 2022-04-15 北京金山云网络技术有限公司 Application program deployment method, device, storage medium and electronic equipment
CN115080060A (en) * 2022-07-20 2022-09-20 中国工商银行股份有限公司 Application program distribution method, device, equipment, storage medium and program product
CN116089097A (en) * 2023-04-11 2023-05-09 睿云联(厦门)网络通讯技术有限公司 Cloud platform deployment method, equipment and medium based on multiple components and environments

Similar Documents

Publication Publication Date Title
CN111414172B (en) Automatic deployment and release system and method for application software
US9940225B2 (en) Automated error checking system for a software application and method therefor
CN107729255B (en) Software testing method, device and system
CN111897566A (en) Software development continuous integration method, device, equipment and medium
CN110727575B (en) Information processing method, system, device and storage medium
CN113254054B (en) Intelligent contract one-stop development system and method
CN113377667B (en) Scene-based testing method and device, computer equipment and storage medium
EP3447635A1 (en) Application architecture generation
US8661414B2 (en) Method and system for testing an order management system
CN110908670A (en) Method and device for automatically publishing service
CN115914055A (en) Distributed network testing method, device, medium and equipment
CN112015436A (en) Short message platform deployment method and device, computing equipment and computer storage medium
CN116541023A (en) Application program release method, device, equipment and storage medium
CN115390861A (en) Resource deployment method, device and equipment and storage medium
CN113672269B (en) Data processing method, system, electronic device and program product
CN115309426A (en) System upgrading method and device, computer equipment and computer readable storage medium
CN115034165A (en) Chip simulation verification method, system, equipment and storage medium
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN114416596A (en) Application testing method and device, computer equipment and storage medium
CN114356346A (en) Application program deployment method, device, storage medium and electronic equipment
CN114297088A (en) Method, device, equipment and medium for testing front end vue frame assembly
CN112748950A (en) Software code examination method and device
CN112445513A (en) Installation package processing method and device
CN112667491A (en) Function test method and device of virtual machine
CN114116466B (en) Unit test method, device and medium based on operation log

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230804