A method for application push release based on differential environment
By using the MD5 code to detect application package updates and automatically create a release plan during the application version release process, the problems of low application version release efficiency and high error risk in the existing technology are solved, and more efficient and accurate application version release is achieved.
Patent Information
- Application Number
- CN202111271249.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In the existing technology, application version release efficiency is low and human errors exist, resulting in an increased risk of errors during the release process.
By testing the application version to be released, MD5 code is generated to detect whether the application package is updated, and automatically create a release plan, reducing human intervention and improving release efficiency and accuracy.
It improves the efficiency and accuracy of application version release, reduces the risk of human error, ensures the correctness of the release plan, and extends the service life of the release system terminal.
Smart Images

Figure CN113986331B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of software management, and in particular relates to a method for pushing and publishing applications based on differential environments. Background Art
[0002] With the rapid development of the Internet, the types of application software are endless, and the number of applications is increasing day by day. With the company of these software, people's lives are more convenient and colorful. After these application software are put into use, they need to be updated after a period of time. It may be because some program vulnerabilities appear in the application software, or the system version running the application software has changed. In this case, the application software needs to be significantly revised or corrected to improve the functionality and stability of the application software.
[0003] In the prior art, when releasing a new application version, the operation and maintenance personnel need to first organize the list of applications to be released, which includes the application product packages and version information to be released, and then log in to the release system to create a release plan for each application and specify the application version to be released; when releasing, it is also necessary to manually confirm whether the size of the released application product package is consistent with the size of the application product package in the list to be released, so as to avoid the release of the application product package being changed midway. This process requires multiple human interventions, which not only reduces the release efficiency of the application version, but also causes human errors in the release process, resulting in an increased risk of errors in the released application version; low efficiency in application version release or errors in the released application version will not only delay people's normal use of the application software, but also reduce people's favorability. Therefore, how to improve the release efficiency of new application versions, reduce human intervention in the release process, and improve the accuracy of application versions are key issues that software companies need to solve. Summary of the invention
[0004] The present invention aims to provide a method for push publishing based on differential environment application, which solves the problems of low publishing efficiency of application versions in the prior art, human errors in the publishing process, and increased risk of errors in the published application versions.
[0005] The basic solution provided by the present invention is a method for pushing and publishing applications based on different environments, comprising the following steps:
[0006] S1: Test the application version to be released; seal the application version that has completed the test, obtain the product package, and store the MD5 code of the product package;
[0007] S2: Generate an application package from the product package and related information files, and send the application package to a specified directory on the server;
[0008] S3: the publishing system accesses the specified directory to detect whether the specified directory includes a new application package; if so, execute step S4, otherwise, loop through step S3;
[0009] S4: Obtaining MD5 codes of the new application package and the product package in the initial application package; the initial application package is an application package in a test environment;
[0010] S5: Determine whether the MD5 codes of the new application package and the product package of the initial application package are consistent. If they are consistent, execute step S6;
[0011] S6: Obtain relevant information files in the new application package and create a release plan.
[0012] The principle and advantage of the present invention are: after the tester completes the application version test, the application package is pushed to the designated directory of the server, and the publishing system detects the application package under the designated directory, obtains the MD5 code in the application package, and determines whether the application package is updated. According to the principle of the MD5 code algorithm, each application package corresponds to a unique MD5 code, so by checking the MD5 code, it can be determined whether the application package has been changed. If the application package has not been changed, the relevant information file in the application package is obtained to generate a release plan. The advantages of the present invention are: compared with the prior art, this solution does not require the operation and maintenance personnel to check the application package information and create a release plan through the release list; this solution reduces the intervention of personnel, and the update of the application package can be detected through the release system, and the relevant information file is obtained, and the release plan is automatically created, without the need to manually verify whether the product package has been modified; this solution detects the update of the application package and creates a release plan through the release system, which improves the release efficiency, reduces the error risk caused by human intervention, and improves the accuracy of application release.
[0013] Further, the method further comprises steps S7 and S8:
[0014] S7: Review the release plan. If the review is passed, the release operation is performed; if the review is not passed, step S8 is executed;
[0015] S8: Prompt the user to explain the reason why the review failed.
[0016] Beneficial effects: After the release plan is created, it is reviewed before the release operation is carried out to ensure the correctness of the application version and reduce the risk of errors in the application version; by collecting the reasons why the release plan failed, the problems that failed the review can be found out, which facilitates the subsequent improvement of the automatic release plan generation program and improves the review pass rate of the release plan.
[0017] Furthermore, the step S3 is specifically as follows: the publishing system periodically accesses the designated directory to detect whether the designated directory includes a new application package; if so, step S4 is executed, otherwise step S3 is looped.
[0018] Beneficial effect: Since it takes time to update the application package, there is no need to check the application package all the time. By setting the interval time for the publishing system to access the specified directory, the terminal running the publishing system does not need to run the program all the time, which extends the service life of the terminal to a certain extent.
[0019] Further, the step S5 comprises the following steps:
[0020] S5-1: Determine whether the MD5 codes of the new application package and the product package of the initial application package are consistent. If they are consistent, execute step S6; otherwise, execute step S5-2;
[0021] S5-2: Push a prompt message to the manager, and after receiving the inconsistency reason fed back by the manager, return to step S2.
[0022] Beneficial effect: Since each application package corresponds to a unique MD5 code, by checking the MD5 code, it is possible to determine whether the application package has been changed. If the application package has been changed, a message is pushed to the administrator to inform the administrator that the MD5 code of the published product package is inconsistent with the initial product package and may have been modified. After the administrator finds out the reason, the reason for the inconsistency is fed back and the program returns to step S2; by sending prompt information to the administrator, the administrator can deal with emergencies in a timely manner, shorten the release preparation time, and improve the release efficiency.
[0023] Furthermore, the step S2 specifically includes: generating an application package from the MD5 code, the product package and the related information files, and encrypting the application package and sending it to a designated directory of the server;
[0024] The step S4 further comprises the following steps:
[0025] S4-1: Decrypt the new application package to obtain the product package;
[0026] S4-2: Parse the MD5 code of the new product package;
[0027] S4-3: Call the test environment to obtain the MD5 code of the product package of the initial application package.
[0028] Beneficial effect: Packaging and encrypting the application package ensures the security of the application package during transmission and reduces the risk of data loss during transmission.
[0029] Further, the step S1 comprises the following steps:
[0030] S1-1: Test the application version to be released;
[0031] S1-2: The application version that has completed the test is sealed, a product package is obtained, and the MD5 code of the product package is stored;
[0032] S1-3: Perform a second verification on the application version after the board is sealed. If the verification passes, execute step S2; otherwise, return to step S1-1.
[0033] Beneficial effects: Perform secondary verification on the application version after the board is sealed to ensure that the data of the application version is correct, improve the subsequent detection rate of the consistency of the application package, and at the same time improve the review pass rate of operation and maintenance personnel.
[0034] Furthermore, the server is an SFTP server.
[0035] Beneficial effects: The SFTP server can limit the identity of the visitor, limit the visitor's operations on the specified directory, and ensure the security of the application package.
[0036] Furthermore, the related information files include version information, configuration files and sql files.
[0037] Beneficial effects: The relevant file information includes version information, configuration files and SQL files, so the release plan created is comprehensive and complete.
[0038] Furthermore, the release plan includes the release application name, current version, version to be released, configuration file and release time.
[0039] Beneficial effects: With information such as application name, current version, and version to be released, operation and maintenance personnel can quickly and correctly review the release plan and improve release efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A logical schematic diagram of an embodiment of the present invention;
[0041] Figure 2 Schematic diagram of the relationship between the various parts of an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following is further described in detail through specific implementation methods:
[0043] The embodiment is basically as shown in the attached Figure 1 As shown: A method for pushing and publishing applications based on a differential environment, comprising the following steps:
[0044] S1-1: Test the application version to be released;
[0045] S1-2: The application version that has completed the test is sealed, a product package is obtained, and the MD5 code of the product package is stored;
[0046] S1-3: Perform secondary verification on the application version after the board is sealed. If the verification passes, execute step S2; otherwise, return to step S1-1;
[0047] S2: Generate an application package from the MD5 code, product package, version information, configuration file and SQL file, and encrypt the application package and send it to a specified directory on the server; the server is an SFTP server;
[0048] S3: The publishing system periodically accesses the designated directory to detect whether the designated directory includes a new application package; if so, executes step S4, otherwise, loops through step S3; the periodic access interval can be set and changed according to demand;
[0049] S4-1: Decrypt the new application package to obtain the product package;
[0050] S4-2: Parse the MD5 code of the new product package;
[0051] S4-3: Call the test environment to obtain the MD5 code of the product package of the initial application package;
[0052] S5-1: Determine whether the MD5 codes of the new application package and the product package of the initial application package are consistent. If they are consistent, execute step S6; otherwise, execute step S5-2;
[0053] S5-2: Push a prompt message to the administrator, informing him that the MD5 code of the released product package is inconsistent with the initial product package and may be modified, and ask him to find out the reason as soon as possible; and after receiving the reason for the inconsistency feedback from the administrator, return to step S2;
[0054] S6: Obtain product package information and version information in the new application package, and create a release plan based on the product package information and version information; the release plan includes the release application name, current version, version to be released, configuration file and release time; the release plan is stored in the database of the release system.
[0055] S7: The operation and maintenance personnel log in to the release system and review the release plan. If the review is passed, the release operation is performed; if the review is not passed, step S8 is executed;
[0056] S8: Prompt the user to explain the reason why the review failed.
[0057] Based on the reasons for the failure of the review explained by the operation and maintenance personnel, the application manager will intervene to investigate the main problems that caused the failure, solve the problems, and restart the program after solving them. By counting the reasons for failure, investigating and solving the problems, the approval rate of the release plan can be improved, and the release efficiency can be improved.
[0058] This solution connects the test environment and the production environment. After the tester completes the version test, the application version information can be pushed. The production environment release system will automatically detect and create a release plan, eliminating the need for operation and maintenance personnel to organize the list of releases and manually create a release plan. This solution reduces manual operations, allowing operation and maintenance personnel to focus on release operations without having to manually verify whether the product package has been modified, thereby improving release efficiency and the correctness of released application versions.
[0059] The specific implementation process is as follows:
[0060] As attached Figure 2 As shown, in the test environment, the tester first tests the version to be released, and after the test is completed, the application package generated by the version to be released is pushed to the specified directory of the SFTP server; the release system in the production environment will regularly detect the application package in the specified directory of the SFTP server, and when a new application package is detected, the application package is decrypted to obtain relevant information such as the new product package, the MD5 code of the new product package, and the test environment API is called at the same time to obtain the MD5 code value of the initial product package, and the MD5 codes of the new product package and the initial product package are checked. If they are consistent, it is confirmed that the initial product package has not been modified, and a release plan is automatically created according to the product package information and version information. After the creation is completed, the release plan is reviewed. After the review is passed, the new version of the application can be released.
[0061] The above are only embodiments of the present invention. Common knowledge such as the known specific structures and characteristics in the scheme is not described in detail here. Ordinary technicians in the relevant field know all the common technical knowledge in the technical field to which the invention belongs before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply conventional experimental means before that date. Ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.
Claims
1. A method for application push release based on differential environment, characterized by: The following steps are involved: S1: Test the application version to be released; The application version that has completed the test is sealed, the product package is obtained, and the MD5 code of the product package is stored; S2: Generate an application package from the product package and related information files, and send the application package to a specified directory on the server; S3: The publishing system accesses the specified directory to detect whether the specified directory contains a new application package; if If yes, execute step S4, otherwise, loop through step S3; S4: Obtain the MD5 code of the new application package and the product package in the initial application package; The initial application package is an application package in a test environment; S5: Determine whether the MD5 codes of the new application package and the product package of the initial application package are consistent. If they are consistent, execute step S6; S6: Obtain relevant information files in the new application package to create a release plan; It also includes steps S7 and S8: S7: Review the release plan. If the review is passed, execute the release operation; if the review is not passed, execute step S8; S8: Prompt the user to explain the reason for failure of the review; The step S3 is specifically as follows: the publishing system periodically accesses the designated directory to detect whether the designated directory includes a new application package; if If yes, execute step S4, otherwise, loop through step S3; The step S5 comprises the following steps: S5-1: Determine whether the MD5 codes of the new application package and the product package of the initial application package are consistent. If they are consistent, execute step S6; otherwise, execute step S5-2; S5-2: Pushing a prompt message to the manager, and after receiving the inconsistency reason fed back by the manager, returning to step S2; The step S2 specifically includes: generating an application package from the MD5 code, the product package and the related information files, and encrypting the application package and sending it to a designated directory of the server; The step S4 further comprises the following steps: S4-1: Decrypt the new application package to obtain the product package; S4-2: Parse the MD5 code of the new product package; S4-3: Call the test environment to obtain the MD5 code of the product package of the initial application package; The step S1 comprises the following steps: S1-1: Test the application version to be released; S1-2: The application version that has completed the test is sealed, a product package is obtained, and the MD5 code of the product package is stored; S1-3: Perform a second verification on the application version after the board is sealed. If the verification passes, execute step S2; otherwise, return to step S1-1.
2. According to claim 1, a method for pushing and publishing applications based on different environments is characterized in that: The server is an SFTP server.
3. The method for pushing and publishing applications based on different environments according to claim 1, characterized in that: The related information files include version information, configuration files and sql files.
4. The method for pushing and publishing applications based on different environments according to claim 1, characterized in that: The release plan includes the release application name, current version, version to be released, configuration file and release time.
Citation Information
Patent Citations
Method and system for compiling and issuing code file
CN104077217A
Software version consistency detection system and detection method thereof
CN106445485A
Client side upgrading management method and system based on server side upgrading
CN107015831A
Application automated version releasing method and system
CN107729045A
Program automatic upgrading control method and device, computer equipment and storage medium
CN110059001A
