CN111813439B - Distribution material quality control method, device, equipment and computer storage medium - Google Patents

Distribution material quality control method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN111813439B
CN111813439B CN202010696066.4A CN202010696066A CN111813439B CN 111813439 B CN111813439 B CN 111813439B CN 202010696066 A CN202010696066 A CN 202010696066A CN 111813439 B CN111813439 B CN 111813439B
Authority
CN
China
Prior art keywords
file
preset
preset database
release
project
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.)
Active
Application number
CN202010696066.4A
Other languages
Chinese (zh)
Other versions
CN111813439A (en
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.)
Qianhai Life Insurance Co ltd
Original Assignee
Qianhai Life Insurance 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 Qianhai Life Insurance Co ltd filed Critical Qianhai Life Insurance Co ltd
Priority to CN202010696066.4A priority Critical patent/CN111813439B/en
Publication of CN111813439A publication Critical patent/CN111813439A/en
Application granted granted Critical
Publication of CN111813439B publication Critical patent/CN111813439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving

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 Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a quality control method of release materials, which comprises the following steps: when a material issuing instruction is received, acquiring a project file based on the material issuing instruction; extracting a configuration file in the project file, and packaging a source code in the project file to generate a general package; and uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material. The invention also discloses a release material quality control device, equipment and a computer storage medium, which can reduce the abnormality in the release material quality control process and improve the efficiency of project development.

Description

Distribution material quality control method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for controlling quality of a release material.
Background
In the process of automatically constructing, releasing and deploying implementation, a developer plays a war package (JavaWeb engineering package) of a corresponding environment through a tool, wherein the war package is different in different environments in configuration files contained in the war package, for example, in a production environment, the configuration files in the war package are production configuration files, and for example, in a test environment, the configuration files in the war package are test configuration files.
The war package and the configuration file are manually maintained by a developer, when the war package is released, namely, environment conversion such as test environment is converted into production environment, and once the configuration file is forgotten to be replaced, application verification failure is caused, so that project abnormality and development efficiency are reduced.
Disclosure of Invention
The invention mainly aims to provide a release material quality control method, a release material quality control device, release material quality control equipment and a release material quality control computer storage medium, and aims to solve the technical problems that an abnormality occurs in a project and development efficiency is reduced when environment conversion is caused by manual maintenance of war packages and configuration files.
In order to achieve the above object, the present invention provides a release material quality control method, comprising the steps of:
when a material issuing instruction is received, acquiring a project file based on the material issuing instruction;
extracting a configuration file in the project file, and packaging a source code in the project file to generate a general package;
and uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material.
In an embodiment, before the step of acquiring the project file and the preset database file associated with the project file based on the material issue instruction when the material issue instruction is received, the method includes:
when uploading of a preset database file is detected, checking the preset database file;
and if the preset database file passes the verification, uploading the preset database file to a preset filing catalog.
In an embodiment, the step of verifying the preset database file when the uploading of the preset database file is detected includes:
when the preset hook function detects that the preset database file is uploaded, at least one of file names and/or file heads and/or file contents and/or file coding formats is/are checked for the preset database file.
In one embodiment, the step of uploading the configuration file and the generic package to a preset archive directory to extract the file from the preset archive directory when the deployment platform issues the material includes:
determining the file type of the configuration file;
if the configuration file is a test type, uploading the configuration file to a first subdirectory of a preset filing directory;
and if the configuration file is in production type, uploading the configuration file to a second sub-directory of a preset filing directory.
In one embodiment, after the step of uploading the configuration file and the generic package to a preset archive directory to extract the file from the preset archive directory when the deployment platform issues the material, the method comprises:
when a material release task is received, determining the release task type;
selecting a target configuration file from a corresponding preset filing catalog according to the release task type;
and issuing the target configuration file, a preset database file and the universal package.
In an embodiment, the step of selecting the target configuration file from the corresponding preset archive directory according to the publishing task type includes:
if the task type is a test class, selecting a configuration file from a first sub-directory in the archive directory as a target configuration file;
and if the task type is a production class, selecting a configuration file from a second sub-directory in the archive directory as a target configuration file.
In an embodiment, the step of publishing the preset database file, the target configuration file and the generic package includes:
acquiring the version state;
judging whether the version state is encapsulated;
if the version state is not sealed, ending the release and outputting the prompt information.
And if the version state is the encapsulated version, continuing to execute the release operation.
In addition, to achieve the above object, the present invention also provides a release material quality control apparatus including:
the receiving module is used for acquiring a project file based on the material issuing instruction when receiving the material issuing instruction;
the packaging module is used for extracting the configuration file in the project file and packaging the source code in the project file to generate a general package;
and the uploading module is used for uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material.
In addition, in order to achieve the above purpose, the present invention also provides a release material quality control device;
the release material quality control apparatus includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the release material quality control method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the release material quality control method as described above.
The embodiment of the invention provides a method, a device, equipment and a computer storage medium for controlling the quality of release materials, and when a material release instruction is received, a project file is acquired based on the material release instruction; extracting configuration files in the project files, packaging source codes in the project files to generate universal packages, uploading the configuration files and the universal packages to a preset filing catalog so as to extract files from the preset filing catalog when a material is released by a deployment platform, generating the universal packages from the source codes in the project files, wherein the universal packages are applicable to various environments without classification selection.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a method for controlling quality of release material according to the present invention;
FIG. 3 is a flow chart of a second embodiment of the method for controlling quality of release material according to the present invention;
fig. 4 is a schematic flow chart of a third embodiment of the method for controlling quality of release material according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Because the war package and the configuration file in the prior art are manually maintained by a developer, when the war package is released, namely, the environment is converted into the production environment through the test environment, once the configuration file is forgotten to be replaced, the application verification is failed, and the project is abnormal and the development efficiency is reduced.
The embodiment of the invention provides a method, a device, equipment and a computer storage medium for controlling the quality of release materials, and when a material release instruction is received, a project file is acquired based on the material release instruction; extracting configuration files in the project files, packaging source codes in the project files to generate universal packages, uploading the configuration files and the universal packages to a preset filing catalog so as to extract files from the preset filing catalog when a material is released by a deployment platform, generating the universal packages from the source codes in the project files, wherein the universal packages are applicable to various environments without classification selection.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal (also called as a release material quality control device) of a hardware running environment according to an embodiment of the present invention, where the release material quality control device may be formed by a separate release material quality control device, or may be formed by a combination of other devices and a release material quality control device.
The terminal of the embodiment of the invention can be a fixed terminal or a mobile terminal, such as an intelligent air conditioner with networking function, an intelligent electric lamp, an intelligent power supply, an intelligent sound box, an automatic driving automobile, a PC (personal computer) personal computer, an intelligent mobile phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, e.g. a central processing unit Central Processing Unit, a CPU), a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WIFI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, and a WiFi module; the input unit is compared with the display screen and the touch screen; the network interface may optionally be other than WiFi in a wireless interface, bluetooth, probe, etc. Among other sensors, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, the computer software product is stored in a computer storage medium (computer storage medium: also called computer storage medium, computer medium, readable computer storage medium, computer readable computer storage medium, direct call medium, etc.), where the computer storage medium may be a nonvolatile readable computer storage medium, such as RAM, a magnetic disk, an optical disk, etc.), and includes instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a computer program stored in the memory 1005 and perform the steps in the release material quality control method provided by the following embodiments of the present invention.
Referring to fig. 2, in a first embodiment of a method for controlling quality of release material according to the present invention, the method for controlling quality of release material includes:
step S10, when a material issue instruction is received, acquiring a project file based on the material issue instruction.
The material issuing control device obtains a project file based on the material issuing instruction when receiving the material issuing instruction, the material issuing instruction can be a device such as a PC (personal computer) and a server, the material issuing instruction is an instruction for packaging and issuing the existing project file, different from an instruction for directly issuing the existing war package for general operation in the field, the material issuing instruction designates the associated project file, namely the project file which needs to be packaged and issued this time, when the project file relates to database operation, the project file is associated with a preset database file, namely the project file is not necessarily associated with the preset database file, and when the preset database file does not exist, the operation about the preset database file in the embodiment can be removed, the effect of the embodiment can be achieved, the database operation instruction such as creation and modification contained in the file is realized when the preset database file is executed, and in order to ensure the integrity of the project, when the project file contains database call, the associated preset database file must be issued together.
Further, the step S10 of presetting includes:
and a step a1, when uploading of a preset database file is detected, checking the preset database file.
And a2, if the preset database file passes the verification, uploading the preset database file to a preset filing catalog.
When the uploading of the preset database file is detected, the published material quality control equipment checks the preset database file, the prior check of the data file is not needed in the existing method, the problem of the preset database file can be determined when the published material quality control equipment finally publishes the data file, and in the embodiment, the preset database file is checked when the uploading of the preset database file is detected, so that the correctness of the preset database file is determined. If the preset database file passes the verification, the published material quality control equipment associates the preset database file with a project file as a preset database file, namely the project file relates to database operation, and the project file works normally under one condition when the preset database file is used.
Further, the step S40 may include:
and b1, when the preset hook function detects that the preset database file is uploaded, checking at least one of file names and/or file heads and/or file contents and/or file coding formats of the preset database file.
When the preset hook function of the release material quality control device detects that a preset database file is uploaded, the release material quality control device verifies at least one of a file name, a file header, a file content and a file coding format of the preset database file, the preset hook function can filter all messages and events at a system level, and event content which cannot be accessed under normal conditions can be accessed, so that the hook function is used as a detection tool for uploading events of the preset database file.
The file name verification specifically comprises the steps of obtaining a submitting example of a preset database file, dividing each preset database file name from a log file, judging whether a space exists in the preset database file name, and if the space exists in the preset database file name, not allowing uploading.
The file header verification specifically comprises reading a binary code of a preset database file header, and if the binary code of the preset database file header is not started by \xEF\ xbb \xBF, the code format is not UTF-8 BOM-free format, and uploading is not allowed. Because the tape BOM format may cause file parsing errors, performing error reporting, prompting SP2-0734:unknown command beginning.
The file content verification specifically comprises the steps of reading preset database file content named dml type, and detecting whether key features of ddl sentences are contained or not through regular matching, wherein the key features of the ddl sentences are as follows: the method comprises the steps that a data base is divided into a data base, an index sequence synonym view, an alter branch view or create public synonym, if a ddl statement appears, uploading of a preset database file is not allowed, the ddl is a database operation language, basic adding, deleting and changing operation of a database is achieved, the ddl is a data definition language, some objects in the database are managed, and the characteristics of the ddl statement appear in the content of the dml file, namely errors are considered.
Method for judging last visible character (space not counting) to/end using regular matching: the number of characters/characters that may appear in the preset database file content is the annotation line//, or the characters/characters that appear in the annotation line, and since the carriage return line is an invisible character, there may be a combination of carriage returns, line feeds, and space characters following the characters. The scheme adopts the steps of intercepting the last 100 characters of the file (if the total number of characters of the sql file is less than 100, all the characters are intercepted), removing the carriage return character, the line feed character and the space character in the last 100 characters, and finally judging whether the characters end with/by regular matching grep-Eoi '/$'.
The file content verification may also be to determine whether a DELIMITER keyword appears in the preset database file content, if DELIMITER keyword appears, it indicates that the preset database file is a mysql script file, no pl/sql code block is determined, if DELIMITER keyword does not appear and there are three keywords declare, begin and end at the same time, it indicates that the preset database file is a pl/sql code block of Oracle, it must be used/ended, and if it does not meet the condition, it is not allowed to upload the preset database file.
In addition, the corresponding prompt information can be fed back when the uploading is not allowed so as to prompt an uploading user to modify the preset database file and then submit the modified preset database file again for uploading to form the preset database file.
And step S20, extracting the configuration file in the project file, and packaging the source code in the project file to generate a general package.
The release material quality control device extracts the configuration files in the project files and stores the configuration files in a local classified directory, for example, stores the configuration files of the test type under the local config/uat/directory, stores the configuration files of the production type under the local config/prd/directory to distinguish the configuration files, wherein the configuration files are files used for configuring the running environment in the project files, different configuration files record different interface, parameter and other configuration information, and the project files are usually only different in configuration files in test or production scenes, so that the configuration files in the project files are packaged after replacement operation and are directly used in different scenes, but if an operator is not conscious of replacing the configuration files, or selects an error package after replacement, the operation failure of subsequent deployment and the like can be caused, therefore, the embodiment proposes to store the configuration files in the project files in different directories separately after extraction and manage the configuration files, and avoid the error occurrence in subsequent uploading the configuration files.
Step S30, uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material.
The distribution material quality control device uploads the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the distribution platform distributes materials,
the release material quality control equipment packages the source codes after extracting the configuration files from the project files to generate universal packages, the universal packages are directly and commonly used for testing scenes and production scenes, and the environment configuration can be carried out only by grabbing the corresponding configuration files under the corresponding catalogues under different scenes.
The embodiment of the invention provides a method, a device, equipment and a computer storage medium for controlling the quality of release materials, and when a material release instruction is received, a project file is acquired based on the material release instruction; extracting configuration files in the project files, packaging source codes in the project files to generate universal packages, uploading the configuration files and the universal packages to a preset filing catalog so as to extract files from the preset filing catalog when a material is released by a deployment platform, generating the universal packages from the source codes in the project files, wherein the universal packages are applicable to various environments without classification selection.
Further, referring to fig. 3, on the basis of the above embodiment of the present invention, a second embodiment of the quality control method of the present invention for release material is further provided, where the present embodiment is a refinement step of step S20 in the first embodiment, and the quality control method of release material includes:
step S21, determining the file type of the configuration file.
Step S22, if the configuration file is a test type, uploading the configuration file to a first subdirectory of a preset filing directory.
Step S23, if the configuration file is of a production type, uploading the configuration file to a second subdirectory of a preset filing directory.
The release material quality control device determines the file type of the configuration file, the configuration file is usually located under a specific directory of the configuration file, the configuration file can be determined by searching according to the established directory, the configuration file type can be determined by matching according to names, contents and the like, the prior art contents are not described in detail again, and the configuration file generally comprises a test type and a production type.
If the configuration file is of a test type, uploading the configuration file to a first subdirectory of a preset filing directory, and if the configuration file is of a production type, uploading the configuration file to a second subdirectory of the preset filing directory, namely, mainly storing the configuration files of the production type and the test type in the preset filing directory in a classified manner, so that a subsequent deployment platform can extract the configuration file from the preset filing directory without errors.
Furthermore, the separation of the configuration files is to further build a configuration management center, and a foundation is laid for centralized management of the configuration files; the continuous integrated system is convenient to realize automatic packing and uploading of war packets or universal packets and configuration files; the convenient deployment platform can automatically deploy the war package or the general package and the configuration file by analyzing the json file, and can obviously improve the automation level and the release efficiency.
In the embodiment, the configuration files are summarized, and the configuration files are classified and uploaded to different subdirectory classification management of the preset filing catalogue, so that a foundation is laid for accurately extracting the configuration files by a subsequent deployment platform, and the problem that the configuration files are wrong during release is avoided.
Further, referring to fig. 4, on the basis of the above embodiment of the present invention, a third embodiment of the quality control method of the present invention for release material is further provided, where the present embodiment is a post step of step S30 in the first embodiment, and the quality control method of release material includes:
and step S40, when a material release task is received, determining the release task type.
The release material quality control device determines the release task type when receiving a material release task, wherein the material release task refers to the file content specification of a json (JavaScript Object Notation, JS object numbered musical notation) file which is actually extracted by a deployment platform and is used for production or testing by the material release, and the json file content is written by a developer.
And S50, selecting a target configuration file from the corresponding preset filing catalogue according to the release task type.
And the release material quality control equipment selects a target configuration file from the corresponding preset filing catalogue according to the release task type.
Further, step S70 may include:
and c1, if the task type is a test class, extracting a configuration file from the first sub-directory to serve as a target configuration file.
If the task type is a test type, the published material quality control device selects a configuration file from the first sub-directory as a target configuration file, wherein the first sub-directory is a directory for storing the test type configuration file determined in the foregoing embodiment, and selects the configuration file from the first sub-directory as the target configuration file.
And c2, if the task type is a production type, selecting a configuration file from the second sub-directory as a target configuration file.
If the task type is a test type, the published material quality control device selects a configuration file from the second sub-directory as a target configuration file, wherein the second sub-directory is a directory for storing the production type configuration file determined in the foregoing embodiment, and selects the configuration file from the first sub-directory as the target configuration file.
Step S60, issuing the preset database file, the target configuration file and the general package.
The release material quality control equipment releases the preset database file, the target configuration file and the universal package, wherein the release preset database file is a database for constructing response, the release target configuration file is a server path for releasing the target configuration file to json files, and the release universal package is a server path for releasing the universal package to json files.
In this embodiment, by selecting the target configuration file from the preset directory according to the task execution instruction, and issuing the preset database file, the target configuration file and the general package, a method of determining the target configuration file and executing the target configuration file together with other files after the configuration file is separated from the war package is provided, and the configuration file separation makes no manual operations such as configuration file replacement and the like necessary, thereby avoiding errors caused by manual operations.
Further, on the basis of the above embodiment of the present invention, a fourth embodiment of the method for controlling quality of release material of the present invention is further provided, where this embodiment is a refinement step of step S60 in the first embodiment.
The release material quality control method in step S60 includes:
and d1, judging whether the version state is encapsulated.
And d2, if the version state is not sealed, stopping the release operation, and prompting an operator of the reason of release failure.
And d3, if the version state is the encapsulated version, the release operation can be continued.
When the release material quality control device receives a material release instruction, a project file is acquired based on the project instruction, the method of this step is described in the foregoing embodiments, and is not described in detail herein, the release material quality control involves determining whether the version state is blocked, that is, the current version test passes, and the security and operation service portion checks and accepts to pass, so as to satisfy the release condition, allow release production, and after the version blocking, the developer does not allow code and package to be submitted again, so as to ensure the consistency of the test package and the production package.
If the version state is not sealed, namely the release condition is not satisfied, the release is stopped, and prompt information is output to prompt an operator of the reason of failure release.
If the version state is the sealed version, namely the release condition is met, the release operation can be continued;
in addition, the modification operation authority of the seal state is not completely forbidden, a mode of binding the identity information of an operator with the authority can be adopted to determine who can perform such sensitive operation, for example, the level of a responsible person of an item can perform the sensitive operation, other persons are not allowed to apply for the responsible person and perform the sensitive operation after being authorized by the responsible person, that is, before the modification operation is performed, the operator needs to verify the personal identity information in advance, an account verification mode can be adopted, in particular, a high-authority account held by the responsible person can grant the authority to a low-authority account, and the effective time of the authority is regulated.
In this embodiment, by judging whether the version state is encapsulated or not and further prohibiting or allowing the release operation, the risk that the developer modifies the code privately and packages and uploads the file which is not verified by the test through the continuous integrated system is avoided.
In addition, the embodiment of the invention also provides a release material quality control device, which comprises:
the receiving module is used for acquiring a project file based on the material issuing instruction when receiving the material issuing instruction;
the packaging module is used for extracting the configuration file in the project file and packaging the source code in the project file to generate a general package;
and the uploading module is used for uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material.
The steps implemented by each functional module of the release material quality control device may refer to each embodiment of the release material quality control method of the present invention, which is not described herein.
The release material quality control apparatus includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the release material quality control method as described above.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium stores a computer program which, when executed by a processor, implements the operations in the release material quality control method provided by the above embodiment
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any actual such relationship or order between such entities/operations/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the units illustrated as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The quality control method of the release material is characterized by comprising the following steps of:
when a material issuing instruction is received, acquiring a project file based on the material issuing instruction, wherein the material issuing instruction designates an associated project file;
extracting a configuration file in the project file, and packaging a source code in the project file to generate a general package;
uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material;
the step of acquiring a project file and a preset database file associated with the project file based on the material issuing instruction when the material issuing instruction is received comprises the following steps:
when a project file relates to database operation and when a preset hook function detects that a preset database file is uploaded, verifying at least one of a file name and/or a file header and/or file content and/or a file coding format of the preset database file;
if the preset database file passes the verification, the preset database file is used as a preset database file associated with the project file;
the file header verification specifically comprises the following steps:
reading a binary code of a preset database file header of the preset database file;
if the binary code of the preset database file header is not started by \xEF\ xbb \xBF, uploading is not allowed;
the file content verification includes:
reading file contents of the preset database file named dml type;
detecting whether the file content contains key features of ddl sentences through regular matching;
and if so, not allowing the uploading of the preset database file.
2. The method of claim 1, wherein the step of uploading the configuration file and the generic package to a preset archive directory to extract files from the preset archive directory when the platform is deployed to publish material comprises:
determining the file type of the configuration file;
if the configuration file is a test type, uploading the configuration file to a first subdirectory of a preset filing directory;
and if the configuration file is in production type, uploading the configuration file to a second sub-directory of a preset filing directory.
3. The method for controlling quality of release material according to claim 1, wherein after the step of uploading the configuration file and the generic package to a preset archive directory so as to extract the file from the preset archive directory when the platform releases the material, the method comprises:
when a material release task is received, determining the release task type;
selecting a target configuration file from a corresponding preset filing catalog according to the release task type;
and issuing the target configuration file, a preset database file and the universal package.
4. The release material quality control method of claim 3, wherein the step of selecting the target profile in the corresponding preset archive directory according to the release task type comprises:
if the release task type is a test class, selecting a configuration file from a first sub-directory in the archive directory as a target configuration file;
and if the release task type is a production type, selecting a configuration file from a second sub-directory in the archive directory as a target configuration file.
5. The release material quality control method of claim 1, wherein the step of releasing the preset database file, the target profile, and the generic package comprises:
acquiring a version state;
judging whether the version state is encapsulated;
if the version state is not sealed, ending release and outputting prompt information;
and if the version state is the encapsulated version, continuing to execute the release operation.
6. A release material quality control apparatus, characterized in that the release material quality control apparatus comprises:
the receiving module is used for acquiring the project file based on the material issuing instruction when receiving the material issuing instruction, wherein the material issuing instruction designates the associated project file;
the packaging module is used for extracting the configuration file in the project file and packaging the source code in the project file to generate a general package;
the uploading module is used for uploading the configuration file and the universal package to a preset filing catalog so as to extract the file from the preset filing catalog when the deployment platform issues the material;
the receiving module is further used for checking at least one of a file name and/or a file header and/or a file content and/or a file coding format of the preset database file when the project file relates to database operation and when the preset hook function detects that the preset database file is uploaded; if the preset database file passes the verification, the preset database file is used as a preset database file associated with the project file;
the file header verification specifically comprises the following steps:
reading a binary code of a preset database file header of the preset database file;
if the binary code of the preset database file header is not started by \xEF\ xbb \xBF, uploading is not allowed;
the file content verification includes:
reading file contents of the preset database file named dml type;
detecting whether the file content contains key features of ddl sentences through regular matching;
and if so, not allowing the uploading of the preset database file.
7. A release material quality control apparatus, characterized in that the release material quality control apparatus comprises:
a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program, when executed by the processor, implements the steps of the release material quality control method of any one of claims 1 to 5.
8. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the release material quality control method according to any of claims 1 to 5.
CN202010696066.4A 2020-07-17 2020-07-17 Distribution material quality control method, device, equipment and computer storage medium Active CN111813439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010696066.4A CN111813439B (en) 2020-07-17 2020-07-17 Distribution material quality control method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010696066.4A CN111813439B (en) 2020-07-17 2020-07-17 Distribution material quality control method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111813439A CN111813439A (en) 2020-10-23
CN111813439B true CN111813439B (en) 2024-03-29

Family

ID=72864976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010696066.4A Active CN111813439B (en) 2020-07-17 2020-07-17 Distribution material quality control method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111813439B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506561A (en) * 2020-12-15 2021-03-16 银盛支付服务股份有限公司 Maven-based filter implementation packaging method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501491B1 (en) * 2011-03-09 2016-11-22 The United States Of America As Represented By The Secretary Of The Navy File format article of manufacture
WO2017177769A1 (en) * 2016-04-11 2017-10-19 平安科技(深圳)有限公司 Ogg version deployment method and system, server, and storage medium
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application dispositions method, device, server and the storage medium of PaaS platform
CN109445837A (en) * 2018-09-03 2019-03-08 中国平安人寿保险股份有限公司 A kind of dissemination method and equipment of application program
CN109725911A (en) * 2017-10-31 2019-05-07 北京国双科技有限公司 A kind of multi-environment project dispositions method, device, storage medium and processor
CN109840194A (en) * 2017-11-28 2019-06-04 网宿科技股份有限公司 A kind of detection method and system of configuration file
CN110109680A (en) * 2019-05-14 2019-08-09 重庆商勤科技有限公司 Using dispositions method, device and apply dissemination method, server, storage medium
WO2019169693A1 (en) * 2018-03-08 2019-09-12 平安科技(深圳)有限公司 Method for quickly importing data in batches, and electronic apparatus and computer-readable storage medium
CN110489436A (en) * 2019-08-16 2019-11-22 北京百度网讯科技有限公司 Variation and platform, computer equipment and readable medium on the line of database

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2516842A (en) * 2013-07-31 2015-02-11 Ibm Deployment of software images with distinct configuration logic
US10637846B2 (en) * 2017-08-30 2020-04-28 Capital One Services, Llc System and method for cloud-based analytics
HUE059370T2 (en) * 2017-09-19 2022-11-28 Huawei Tech Co Ltd Application deployment method, apparatus and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501491B1 (en) * 2011-03-09 2016-11-22 The United States Of America As Represented By The Secretary Of The Navy File format article of manufacture
WO2017177769A1 (en) * 2016-04-11 2017-10-19 平安科技(深圳)有限公司 Ogg version deployment method and system, server, and storage medium
CN109725911A (en) * 2017-10-31 2019-05-07 北京国双科技有限公司 A kind of multi-environment project dispositions method, device, storage medium and processor
CN109840194A (en) * 2017-11-28 2019-06-04 网宿科技股份有限公司 A kind of detection method and system of configuration file
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
WO2019169693A1 (en) * 2018-03-08 2019-09-12 平安科技(深圳)有限公司 Method for quickly importing data in batches, and electronic apparatus and computer-readable storage medium
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application dispositions method, device, server and the storage medium of PaaS platform
CN109445837A (en) * 2018-09-03 2019-03-08 中国平安人寿保险股份有限公司 A kind of dissemination method and equipment of application program
CN110109680A (en) * 2019-05-14 2019-08-09 重庆商勤科技有限公司 Using dispositions method, device and apply dissemination method, server, storage medium
CN110489436A (en) * 2019-08-16 2019-11-22 北京百度网讯科技有限公司 Variation and platform, computer equipment and readable medium on the line of database

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
iOS软件开发工程师实训课程教学研究;钟石根;《计算机教育》;20170510;129-132 *
On Developing and Deploying Large-File Upload Services of Personal Cloud Storage;Huan Chen;《2015 IEEE International Conference on Services Computing》;20150820;1-7 *
医学影像云存储系统的设计与实现;李亚鹏;《万方》;20190827;1-56 *
基于NS4管理平台的网络设备自动化配置与管理系统的设计与实现;潘丽华;《万方》;1-67 *
集中式预付卡系统的设计与实现.《中国优秀硕士学位论文全文数据库 (信息科技辑)》.2018,I138-528. *

Also Published As

Publication number Publication date
CN111813439A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN106469068B (en) Application program deployment method and system
CN106775602B (en) Code publishing method and device
US9766869B2 (en) Parameterized installation packages
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN107147711B (en) Application service updating method and device
CN109324821B (en) Self-service terminal system version management method
CN111813439B (en) Distribution material quality control method, device, equipment and computer storage medium
CN107480050A (en) A kind of method of testing of automatic test renewal bag
CN110908955A (en) Management system of IO device description file
US9934216B2 (en) Schema validation for metadata builder
CN115202711B (en) Data release method and system
CN114115954B (en) Method and device for automatically and integrally deploying service, electronic equipment and storage medium
CN114546473A (en) Method and device for automatically and integrally deploying service, electronic equipment and storage medium
CN114996209A (en) Configuration modification method, device, equipment and readable storage medium
CN110620800B (en) Method and device for synchronously processing configuration data of power secondary system across safety zones
CN111459817A (en) Method and device for checking program execution code
JP4550487B2 (en) Software management system, management device, operation device, software management method, software operation method, and program
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN116415089B (en) Industrial equipment visual management method, computer equipment and storage medium
US11789968B2 (en) Structured-data analysis and visualization
CN115134270B (en) Code monitoring method, monitoring system, electronic equipment and storage medium
CN117632250A (en) Application processing method, device, computer equipment and readable storage medium
JP2008129844A (en) Stored procedure generation device, method, program, and system
CN116909845A (en) Server monitoring method and device, storage medium and electronic equipment
CN117851484A (en) Data processing method and device based on rule engine and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant