CN115794209A - Method and device for generating publishing scheme, computer equipment and readable storage medium - Google Patents

Method and device for generating publishing scheme, computer equipment and readable storage medium Download PDF

Info

Publication number
CN115794209A
CN115794209A CN202211550904.2A CN202211550904A CN115794209A CN 115794209 A CN115794209 A CN 115794209A CN 202211550904 A CN202211550904 A CN 202211550904A CN 115794209 A CN115794209 A CN 115794209A
Authority
CN
China
Prior art keywords
version
resource
scheme
acquiring
branch
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
CN202211550904.2A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211550904.2A priority Critical patent/CN115794209A/en
Publication of CN115794209A publication Critical patent/CN115794209A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of version release, and discloses a version release scheme generation method, a version release scheme generation device, computer equipment and a readable storage medium. The method comprises the following steps: determining a version branch of which the version scheme needs to be generated, and acquiring a resource identifier of which the version branch needs to be issued; traversing the resource identification to detect the type of the resource packet of each version branch; if the current resource packet is an online resource packet, acquiring a release parameter corresponding to the version branch; if the current resource packet is an offline resource packet, acquiring a release order number corresponding to the version branch; and acquiring the scanning results of all the resource packages, and generating a version issuing scheme according to the issuing parameters or the issuing single number when the scanning results pass. By the method, the edition sending scheme can be automatically generated without manually summarizing and compiling the edition sending scheme, and the code scanning result corresponding to the edition sending resource packet is automatically generated, so that the generation efficiency of the edition sending scheme is improved, and the labor cost and the time are saved.

Description

Method and device for generating publishing scheme, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of version release technologies, and in particular, to a method and an apparatus for generating a version release scheme, a computer device, and a readable storage medium.
Background
In the current financial business scenario, when a front-end releases versions in the configuration management process of a banking system software project, a front-end version release scheme and code scanning result review need to be prepared.
At present, all the preparation work is sent to a collector through a developer, then the collector manually collects and counts and writes a version sending scheme, scanning results can be frequently omitted through a sonar system for scanning, partial low-level defects are not processed, and misoperation can be brought by manually processing the version, so that errors are easy to occur, and time is consumed.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a computer device and a readable storage medium for generating a release plan, which can be applied to, for example, the field of financial technology or other technologies.
The invention provides the following technical scheme:
in a first aspect, an embodiment of the present disclosure provides a method for generating a publishing scheme, where the method includes:
determining a version branch needing to generate a version scheme, and acquiring a resource identifier needing to be issued by the version branch;
traversing the resource identification to detect the type of the resource packet of each version branch;
if the current resource packet is an online resource packet, acquiring a release parameter corresponding to the version branch;
if the current resource packet is an offline resource packet, acquiring a release order number corresponding to the version branch;
and acquiring the scanning results of all the resource packets, and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass.
Further, the determining that a version branch of the release scheme needs to be generated and acquiring the resource identifier that the version branch needs to be released includes:
determining a version branch required to generate a version scheme;
acquiring a requirement list of the version branch;
and acquiring the resource identifier required to be issued by the version branch through the demand list.
Further, said traversing said resource identifier to detect a type of resource packet of said version branch comprises:
acquiring resource configuration information of all the version branches;
traversing the resource identifier, and acquiring corresponding resource basic information in the resource configuration information according to the resource identifier;
and detecting the type of the resource packet of the version branch according to the basic resource information.
Further, the issuing parameters include a code environment command parameter and a production environment parameter, and after acquiring the issuing parameters of the corresponding version branch, the method further includes:
acquiring a code environment command parameter in the resource basic information;
and changing the code environment command parameter into the production environment parameter so as to unify the release parameters of all the version branches.
Further, after obtaining the scanning result of the resource package, the method further includes:
traversing each resource packet, and acquiring a scanning result of the resource packet, wherein the scanning result comprises the number of defects, the number of blocking and the number of holes;
and if the defect number, the blocking number and the vulnerability number are all 0, judging that the scanning result is passed, otherwise, judging that the scanning result is not passed.
Further, the publishing scheme further comprises one or more combinations of a version name, a domain name, a predicted publishing time, a requirement name, a resource package name, a developer name, a rollback scheme, a requirement name, and a product manager name.
Further, the method further comprises:
and when the scanning result is that the version generation scheme fails, displaying the generation failure of the version generation scheme, and displaying the failure reason, wherein the failure reason is used for prompting a developer to click and jump to a corresponding resource package.
In a second aspect, an embodiment of the present disclosure provides a publishing scheme generating apparatus, where the apparatus includes:
the acquisition module is used for determining the version branch of which the version scheme needs to be generated and acquiring the resource identifier of which the version branch needs to be issued;
the detection module is used for traversing the resource identifier to detect the type of the resource packet of each version branch;
the first obtaining module is used for obtaining the release parameters of the corresponding version branches if the current resource packet is an online resource packet;
the second obtaining module is used for obtaining the release order number of the corresponding version branch if the current resource packet is the offline resource packet;
and the generation module is used for acquiring the scanning results of all the resource packages and generating a version issuing scheme according to the issuing parameters or the issuing single number when the scanning results pass.
In a third aspect, an embodiment of the present disclosure provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the publishing scheme generation method in the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the publishing scheme generation method in the first aspect.
The embodiment of the application has the following advantages:
the method for generating the version issuing scheme comprises the steps of firstly determining the version branch of the version issuing scheme to be generated, and acquiring the resource identifier of the version branch to be issued; traversing the resource identification to detect the type of the resource packet of each version branch; if the current resource packet is an online resource packet, acquiring a release parameter corresponding to the version branch; if the current resource packet is an offline resource packet, acquiring a release order number corresponding to the version branch; and acquiring the scanning results of all the resource packets, and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass. By the method, the edition sending scheme can be automatically generated without manually summarizing and compiling the edition sending scheme, and the code scanning result corresponding to the edition sending resource packet is automatically generated, so that the generation efficiency of the edition sending scheme is improved, and the labor cost and the time are saved.
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible and comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a method for generating a publishing scheme according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another version generation method provided in an embodiment of the present application;
fig. 3 is a flowchart illustrating a further method for generating a publishing scheme according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a publishing scheme generating apparatus provided in an embodiment of the present application;
fig. 5 shows a hardware architecture diagram of a computer device provided in an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. In contrast, when an element is referred to as being "directly on" another element, there are no intervening elements present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for purposes of illustration only.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or may be connected through the use of two elements or the interaction of two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the templates herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
With the continuous development of financial science and technology, in the process of configuration and management of a software project of a bank system, when a front-end version is released, a front-end version release scheme and code scanning result examination need to be prepared. At present, all the preparation work is sent to a collector through a developer, then the collector manually collects and counts and writes a version sending scheme, scanning results can be frequently omitted through a sonar system for scanning, partial low-level defects are not processed, and misoperation can be brought by manually processing the version, so that errors are easy to occur, and time is consumed.
In order to solve the above problems, the present application provides a method and an apparatus for generating a publishing scheme, a computer device, and a readable storage medium.
Example 1
As shown in fig. 1, which is a flowchart of a method for generating a publishing scheme in an embodiment of the present application, the method for generating a publishing scheme provided in the embodiment of the present application includes the following steps:
step S110, determining the version branch of the version issuing scheme to be generated, and acquiring the resource identifier required to be issued by the version branch.
In the embodiment of the present disclosure, the version branch of the publishing scheme refers to a version of a program that needs to be put into production, and in program design and use, the version branch of the publishing scheme is different for different system environments or different devices such as different clients and different servers. The entity content of the version branch of the version-issuing scheme refers to entity content such as a program package or an installation package of the version. The entity content may be, for example, a relevant version of a software development center release in a software process and management system. The version branches of the publishing scheme have resource identifications, and different information, such as responsible objects and application systems of different version branches, are determined according to the resource identifications, so that different operations are executed according to different responsible objects and application systems. The responsible object is, for example, the main technical department responsible for the release version. The application system may be, for example, an application number at the time of publishing. Therefore, after the system determines that the version branch of the version scheme needs to be generated, the resource identifier which needs to be issued by the version branch is further obtained.
In the present embodiment, as shown in fig. 2, step S110 includes:
step S111, determining a version branch needing to generate a version scheme;
step S112, acquiring a demand list of the version branches;
step S113, obtaining the resource identifier that needs to be issued by the version branch through the requirement list.
Specifically, after a version branch of a version issuing scheme is determined to be required to be generated, a demand list acquired by an interface of a jira system is called, and the demand list comprises one or more combinations of information such as demand content, a product manager name, demand online time and resource identification corresponding to demand of the version branch. And acquiring the resource identifier required to be issued by the version branch through the requirement list. It is understood that, in this embodiment, a jira system is used to store the requirement list, and a specific system may be determined according to actual situations, which is not limited in this embodiment of the present application.
By obtaining the resource identifier to be issued by the version branch, the processing time is reduced and the error probability is reduced when the subsequent version issuing scheme is generated.
Step S120, traverse the resource identifier to detect the type of the resource packet of each version branch.
Further, acquiring resource configuration information of all version branches, circulating each resource identifier, and finding corresponding resource basic information in the resource configuration information through the resource identifier, wherein the resource basic information comprises a production environment, a test environment, a download environment and the like of a resource package of the version branches. And after the basic resource information is acquired, whether the resource packet of the version branch is an online resource packet or an offline resource packet is detected according to the production environment, the test environment and the downloading environment.
It should be understood that the online resource is directly deployed in the corresponding enterprise server, and the corresponding online resource address can be directly accessed through the application program, such as http:// www.aa.com, the resource update is convenient and fast, and the online resource can be accessed in any application program, such as WeChat, a browser, a pocket bank app or a safe custodian; the off-line resources are that when the user opens the application program, the resources are downloaded to the local storage of the user terminal, each time the local resources which are downloaded in advance in the user terminal are actually accessed, the access is not needed through a network and the like, the access speed is high, and the network resources of the user are saved.
In the present embodiment, as shown in fig. 3, step S120 includes:
step S121, acquiring resource configuration information of all the version branches;
step S122, traversing the resource identifier, and acquiring corresponding resource basic information in the resource configuration information according to the resource identifier;
step S123, detecting the type of the resource packet of the version branch according to the resource basic information.
Specifically, after resource configuration information of all the version branches is acquired, traversing the resource identifiers, acquiring corresponding resource basic information in the resource configuration information according to the resource identifiers, and detecting whether the resource packages of the version branches are online resource packages or offline resource packages according to the production environment, the test environment and the download environment. If the corresponding resource address is directly accessed through the application program, the resource packet is an online resource packet, and if the resource address downloaded from the user terminal is directly accessed, the resource packet is an offline resource packet.
By detecting the type of each resource packet of the version branch, the automatic generation of the subsequent version sending scheme is facilitated, the processing time of workers can be saved, and meanwhile, the risk of errors is reduced.
Step S130, if the current resource packet is an online resource packet, obtaining a release parameter corresponding to the version branch.
In this embodiment, if it is detected that the type of the current resource package is an online resource package, an interface of the rms system is called to obtain a release parameter corresponding to a version branch, where the release parameter includes a node version, a release directory, a code library address, a version branch and other parameters that are in accordance with the configuration requirement of the production system, and the parameters are mainly configured by the rms system when the resource is constructed.
The release parameters are divided into code environment command parameters and production environment parameters, and because the rms system of the code environment and the rms system of the production environment are two sets of independent systems, the configuration of the rms system during the code environment command parameter deployment needs to be consistent with the configuration of the rms system during the production environment parameter deployment. Therefore, by acquiring the code environment command parameter in the resource basic information, if the code environment command parameter is not acquired, the industry default value prd is used, and then the code environment command parameter is changed into the production environment parameter, so as to unify the issuing parameters of all version branches, namely, the configuration of the rms system during the deployment of the code environment command parameter and the configuration of the rms system during the deployment of the production environment parameter. It can be understood that, in this embodiment, an rms system is used to store the release parameters, and a specific system may be determined according to an actual situation, which is not limited in this embodiment of the present application.
Step S140, if the current resource packet is an offline resource packet, the issue ticket number corresponding to the version branch is obtained.
Further, if the type of the current resource packet is detected to be the offline resource packet, an interface of the iris system is called to obtain the release order number of the corresponding version branch. The release order number is used for determining the uniqueness of the resource package needing to be released, because the same resource package has a plurality of release tasks, but the release order number of each task is different, when a plurality of versions are released in parallel, a plurality of release tasks exist, and therefore, the release order number is used for determining which resource package is to be released.
And S150, acquiring the scanning results of all the resource packages, and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass.
And circulating all the resource packages, and calling an interface of the sonar system to obtain a scanning result of each resource package, wherein the scanning result comprises the defect number, the blocking number and the vulnerability number. When the defect number, the blocking number and the leak number are all 0, judging that the scanning result is a pass; and when the number of one of the defect number, the blocking number and the leak number is more than 0, judging that the scanning result is failed. It can be understood that, in this embodiment, the sonar system is adopted to store the scanning result of the resource package, and the specific adopted system may be determined according to the actual situation, which is not limited in this embodiment of the present application.
Specifically, when the scanning result is a pass, a version issuing scheme is automatically generated, and an email is sent to notify a developer, wherein the version issuing scheme includes a release parameter or a release order number corresponding to a version branch, and also includes one or more combinations of a version name, a field department name, a predicted version issuing time, a requirement name, a resource package name, a developer name, a rollback scheme, a requirement name, a product manager name, and the like.
Further, when the scanning result is failure, displaying that the version-issuing scheme fails to generate, and displaying a failure reason, such as: and the failure reason is used for prompting a developer to click and jump to a corresponding resource packet to correct and process the corresponding defect.
The method for generating the version issuing scheme, provided by the embodiment of the application, comprises the steps of determining a version branch of the version issuing scheme to be generated, and acquiring a resource identifier required to be issued by the version branch; traversing the resource identification to detect the type of the resource packet of each version branch; if the current resource packet is an online resource packet, acquiring a release parameter corresponding to the version branch; if the current resource packet is an offline resource packet, acquiring a release order number corresponding to the version branch; and acquiring the scanning results of all the resource packets, and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass. By the method, the edition sending scheme can be automatically generated without manually summarizing and compiling the edition sending scheme, and the code scanning result corresponding to the edition sending resource packet is automatically generated, so that the generation efficiency of the edition sending scheme is improved, and the labor cost and the time are saved.
Example 2
As shown in fig. 4, a schematic structural diagram of a publishing scheme generating apparatus 400 in the embodiment of the present application is shown, and the apparatus includes:
an obtaining module 410, configured to determine a version branch that needs to generate a version scheme, and obtain a resource identifier that needs to be issued by the version branch;
a detecting module 420, configured to traverse the resource identifier to detect a type of the resource packet of each version branch;
a first obtaining module 430, configured to obtain a release parameter corresponding to a version branch if the current resource packet is an online resource packet;
a second obtaining module 440, configured to obtain, if the current resource packet is an offline resource packet, a release order number corresponding to the version branch;
and the generating module 450 is configured to obtain scanning results of all the resource packages, and generate a publishing scheme according to the publishing parameter or the publishing single number when the scanning results pass.
Optionally, the publishing scheme generating device may further include:
the determining module is used for determining the version branch of the version issuing scheme to be generated;
the first obtaining submodule is used for obtaining the requirement list of the version branch;
and the second obtaining submodule is used for obtaining the resource identifier required to be issued by the version branch through the demand list.
Optionally, the publishing scheme generating device may further include:
the third obtaining sub-module is used for obtaining resource configuration information of all the version branches;
the fourth obtaining submodule is used for traversing the resource identifier and obtaining corresponding resource basic information in the resource configuration information according to the resource identifier;
and the detection submodule is used for detecting the type of the resource packet of the version branch according to the resource basic information.
Optionally, the publishing scheme generating device may further include:
a fifth obtaining sub-module, configured to obtain a code environment command parameter in the resource basic information;
and the unifying module is used for changing the code environment command parameter into the production environment parameter so as to unify the issuing parameters of all version branches.
Optionally, the publishing scheme generating device may further include:
a sixth obtaining submodule, configured to traverse each resource packet and obtain a scanning result of the resource packet, where the scanning result includes a defect number, a blocking number, and a vulnerability number;
and the judging module is used for judging that the scanning result passes if the defect number, the blocking number and the vulnerability number are all 0, or judging that the scanning result does not pass if the defect number, the blocking number and the vulnerability number are all 0.
Optionally, the publishing scheme generating device may further include:
and the error reporting module is used for displaying the failure of the generation of the version issuing scheme when the scanning result is failed, and displaying the failure reason, wherein the failure reason is used for prompting the developer to click and jump to the corresponding resource packet.
The embodiment of the application has the following advantages:
the version sending scheme generation device provided by the embodiment of the application does not need manual collection and compiling of the version sending scheme, can automatically generate the version sending scheme, and meanwhile automatically generates the code scanning result corresponding to the version sending resource packet, so that the generation efficiency of the version sending scheme is improved, and the labor cost and the time are saved.
Example 3
Fig. 5 is a schematic diagram illustrating a hardware architecture of a computer device provided in the present application, where the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the version scheme generation method described in embodiment 1 when executing the computer program.
In this embodiment, the computer device 500 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. For example, the server may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server or a server cluster composed of a plurality of servers). As shown in fig. 5, computer device 500 includes at least, but is not limited to: memory 510, processor 520, and network interface 530 may be communicatively linked to each other by a system bus. Wherein:
the memory 510 includes at least one type of computer-readable storage medium including flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the storage 510 may be an internal storage module of the computer device 500, such as a hard disk or a memory of the computer device 500. In other embodiments, the memory 510 may also be an external storage device of the computer device 500, such as a plug-in hard disk provided on the computer device 500, a smart Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Of course, the memory 510 may also include both internal and external memory modules of the computer device 500. In this embodiment, the memory 510 is generally used for storing an operating system and various application software installed in the computer device 500, such as program codes of a video playing method. In addition, the memory 510 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 520 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 520 generally functions to control the overall operation of the computer device 500, such as to perform control and processing related to data interaction or communication with the computer device 500. In this embodiment, processor 520 is configured to execute program codes stored in memory 510 or process data.
Network interface 530 may include a wireless network interface or a wired network interface, and network interface 530 is typically used to establish communication links between computer device 500 and other computer devices. For example, the network interface 530 is used to connect the computer device 500 to an external terminal via a network, establish a data transmission channel and a communication link between the computer device 500 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for Mobile communications (GSM), wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), or Wi-Fi.
It should be noted that fig. 5 only shows a computer device having components 510-530, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the method for generating a publishing scheme stored in the memory 510 can also be divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 520) to implement the present invention.
Example 4
The present embodiment also provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the publishing scheme generation method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be construed as limiting the scope of the present invention. It should be noted that various changes and modifications can be made by those skilled in the art without departing from the spirit of the invention, and these changes and modifications are all within the scope of the invention.

Claims (10)

1. A method for generating a publishing scheme, the method comprising:
determining a version branch needing to generate a version scheme, and acquiring a resource identifier needing to be issued by the version branch;
traversing the resource identification to detect the type of the resource packet of each version branch;
if the current resource packet is an online resource packet, acquiring a release parameter corresponding to the version branch;
if the current resource packet is an offline resource packet, acquiring a release order number corresponding to the version branch;
and acquiring the scanning results of all the resource packets, and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass.
2. The method according to claim 1, wherein the determining that a version branch of the version scheme needs to be generated and obtaining the resource identifier that needs to be issued by the version branch comprises:
determining a version branch required to generate a version scheme;
acquiring a demand list of the version branch;
and acquiring the resource identifier required to be issued by the version branch through the demand list.
3. The method according to claim 1, wherein traversing the resource identifier to detect the type of the resource package of the version branch comprises:
acquiring resource configuration information of all the version branches;
traversing the resource identifier, and acquiring corresponding resource basic information in the resource configuration information according to the resource identifier;
and detecting the type of the resource packet of the version branch according to the resource basic information.
4. The method according to claim 3, wherein the release parameters include a code environment command parameter and a production environment parameter, and after obtaining the release parameters of the corresponding version branch, the method further comprises:
acquiring a code environment command parameter in the resource basic information;
and changing the code environment command parameter into the production environment parameter so as to unify the release parameters of all version branches.
5. The method for generating a publishing scheme according to claim 1, wherein after obtaining the scan result of the resource package, the method further comprises:
traversing each resource packet, and acquiring a scanning result of the resource packet, wherein the scanning result comprises the number of defects, the number of blocking and the number of holes;
and if the defect number, the blocking number and the vulnerability number are all 0, judging that the scanning result is passed, otherwise, judging that the scanning result is not passed.
6. The publishing scheme generation method of claim 1, wherein the publishing scheme further comprises one or more combinations of a version name, a domain name, a projected publishing time, a requirement name, a resource package name, a developer name, a rollback scheme, a requirement name, and a product manager name.
7. The publishing scheme generation method of claim 1, further comprising:
and when the scanning result is that the version fails to pass, displaying the generation failure of the version sending scheme, and displaying the reason of failing to pass, wherein the reason of failing to pass is used for prompting a developer to click and jump to a corresponding resource package.
8. A publishing scheme generation apparatus, the apparatus comprising:
the acquisition module is used for determining the version branch of the version scheme to be generated and acquiring the resource identifier required to be issued by the version branch;
the detection module is used for traversing the resource identifier to detect the type of the resource packet of each version branch;
the first obtaining module is used for obtaining the release parameters of the corresponding version branches if the current resource packet is an online resource packet;
the second acquisition module is used for acquiring the release order number of the corresponding version branch if the current resource packet is an offline resource packet;
and the generating module is used for acquiring the scanning results of all the resource packages and generating a publishing scheme according to the publishing parameters or the publishing single number when the scanning results pass.
9. A computer device comprising a memory storing a computer program and a processor implementing the steps of the publishing scheme creation method of any of claims 1-7 when the processor executes the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the publishing scheme generation method as claimed in any one of claims 1-7.
CN202211550904.2A 2022-12-05 2022-12-05 Method and device for generating publishing scheme, computer equipment and readable storage medium Pending CN115794209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211550904.2A CN115794209A (en) 2022-12-05 2022-12-05 Method and device for generating publishing scheme, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211550904.2A CN115794209A (en) 2022-12-05 2022-12-05 Method and device for generating publishing scheme, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115794209A true CN115794209A (en) 2023-03-14

Family

ID=85445766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211550904.2A Pending CN115794209A (en) 2022-12-05 2022-12-05 Method and device for generating publishing scheme, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115794209A (en)

Similar Documents

Publication Publication Date Title
CN109032824B (en) Database verification method, database verification device, computer equipment and storage medium
US9535754B1 (en) Dynamic provisioning of computing resources
CN104991821B (en) method and device for processing monitoring tasks in batches
CN107491371B (en) Deployment monitoring method and device
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
JP2007148728A (en) Policy control method, apparatus and program
CN111586022A (en) Firewall opening verification method, electronic device, computer equipment and storage medium
CN114691445A (en) Cluster fault processing method and device, electronic equipment and readable storage medium
CN113419949B (en) Abnormality detection method, device, equipment and storage medium for data processing
CN109857629B (en) Scanning detection method and device
CN116225622A (en) Docker-based PaaS application parameter template testing method
CN115794209A (en) Method and device for generating publishing scheme, computer equipment and readable storage medium
CN115525568A (en) Code coverage rate inspection method and device, computer equipment and storage medium
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN113608831B (en) Plug-in instance management method, system, storage medium and equipment
CN114500249A (en) Root cause positioning method and device
CN111367796B (en) Application program debugging method and device
CN113918373A (en) Memory leak monitoring method, memory leak detection method and corresponding devices
CN110489208B (en) Virtual machine configuration parameter checking method, system, computer equipment and storage medium
CN109672573B (en) Configuration file deployment method, configuration file determination method, server and storage medium
CN114691395A (en) Fault processing method and device, electronic equipment and storage medium
CN115202898A (en) Message consumption method and device, computer equipment and storage medium
CN110618943A (en) Security service test method and device, electronic equipment and readable storage medium
CN113067713B (en) Method and device for adding engineering identification to alarm network element
CN116016158B (en) Hybrid cloud aPaaS platform deployment method, device, equipment and computer storage medium

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