CN113986331A - Method for pushing and releasing application based on difference environment - Google Patents

Method for pushing and releasing application based on difference environment Download PDF

Info

Publication number
CN113986331A
CN113986331A CN202111271249.2A CN202111271249A CN113986331A CN 113986331 A CN113986331 A CN 113986331A CN 202111271249 A CN202111271249 A CN 202111271249A CN 113986331 A CN113986331 A CN 113986331A
Authority
CN
China
Prior art keywords
package
application
application package
version
release
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
CN202111271249.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.)
Chongqing Fumin Bank Co Ltd
Original Assignee
Chongqing Fumin 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 Chongqing Fumin Bank Co Ltd filed Critical Chongqing Fumin Bank Co Ltd
Priority to CN202111271249.2A priority Critical patent/CN113986331A/en
Publication of CN113986331A publication Critical patent/CN113986331A/en
Pending legal-status Critical Current

Links

Images

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/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention belongs to the field of software management, and discloses a method for pushing and releasing application based on a difference environment, which comprises the following steps: s1: testing an application version to be released; closing the application version which is tested to obtain a product package and storing the MD5 code of the product package; s2: generating an application package by the product package and the related information file and sending the application package to a designated directory of the server; s3: the release system detects a new application package under the appointed directory; s4: acquiring MD5 codes of a new application package and a product package in an initial application package; the initial application package is an application package in a test environment; s5: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6; s6: and acquiring the related information file in the new application package to create a release plan. The problem of prior art application version release inefficiency, there is human error in the release process, leads to the application version of release to have wrong risk to increase is solved.

Description

Method for pushing and releasing application based on difference environment
Technical Field
The invention belongs to the field of software management, and particularly relates to a method for pushing and releasing application based on a difference environment.
Background
With the rapid development of the internet, the types of application software are endlessly developed, the number of applications is increased day by day, and people live with the software more conveniently and more colorful. After the application software is put into use, the application version needs to be updated after a period of time, possibly because some program bugs occur in the application software, or possibly because the system version running the application software changes, the application software needs to be greatly corrected or corrected, so that the functionality and the stability of the application software are improved.
In the prior art, when a new application version is released, operation and maintenance personnel need to firstly arrange an application list to be released, wherein the application list comprises an application product package to be released, version information and the like, then log in a release system to create a release plan for each application, and specify the released application version; when the application product package is released, 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 or not needs to be confirmed manually, and the application product package is prevented from being changed midway. The process needs multiple manual interventions, so that the release efficiency of the application version is reduced, and meanwhile, the release process has human errors, so that the risk of errors of the released application version is increased; the release efficiency of the application version is low or the released application version has errors, so that the normal use of application software by people is delayed, and the use sensitivity of people is reduced. Therefore, how to improve the release efficiency of the new application version, reduce human intervention in the release process, and improve the accuracy of the application version is a key problem to be solved by software companies.
Disclosure of Invention
The invention aims to provide a method for pushing release based on a difference environment application, and solves the problems that in the prior art, the release efficiency of an application version is low, and the risk of errors of the released application version is increased due to human errors in the release process.
The basic scheme provided by the invention is as follows: a method for applying push publishing based on a difference environment comprises the following steps:
s1: testing an application version to be released; closing the application version which is tested to obtain a product package, and storing the MD5 code of the product package;
s2: generating an application package from the product package and the related information file, and sending the application package to a specified directory of the server;
s3: the issuing system accesses the specified directory and detects whether a new application package is included in the specified directory; if yes, executing step S4, otherwise, looping step S3;
s4: acquiring 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;
s5: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6;
s6: and acquiring the related information file in the new application package to create a release plan.
The principle and the advantages of the invention are as follows: after the application version test is completed by a tester, the application packages are pushed to the designated directory of the server, the release system detects the application packages in the designated directory to obtain the MD5 codes in the application packages, judges whether the application packages are updated or not, and learns that each application package corresponds to a unique MD5 code according to the principle of an MD5 code algorithm, so that whether the application packages are changed or not can be judged by checking the MD5 codes, and if the application packages are not changed, the related information files in the application packages are obtained, and a release plan is generated. The invention has the advantages that: compared with the prior art, the scheme does not need operation and maintenance personnel to check the information of the application package through the release list and create a release plan; according to the scheme, personnel intervention is reduced, the updating of the application package can be detected through the release system, the related information file is obtained, the release plan is automatically created, and whether the product package is modified or not does not need to be verified manually; according to the scheme, the release system updates, detects and creates the release plan for the application package, compared with manual detection and creation, the release efficiency is improved, error risks caused by manual intervention are reduced, and the accuracy of application release is improved.
Further, steps S7 and S8 are also included:
s7: auditing the release plan, and if the audit is passed, then executing release operation; if the audit is not passed, go to step S8;
s8: the user is prompted to explain the reason for the failure of the audit.
Has the advantages that: the release operation is carried out after the release plan is created, so that the correctness of the application version is ensured, and the error risk of the application version is reduced; by collecting reasons of the failure of the release plan, the problem of failure of the audit is found out, so that the automatic release plan generation program is improved conveniently in the follow-up process, and the audit passing rate of the release plan is improved.
Further, the step S3 specifically includes: the issuing system periodically accesses the specified directory and detects whether a new application package is included in the specified directory; if so, go to step S4, otherwise loop through step S3.
Has the advantages that: because the update of the application package needs time, the application package is not required to be detected all the time, the interval time for the issuing system to access the specified directory is set, and the terminal for operating the issuing system does not need to operate a program all the time, so that the service life of the terminal is prolonged to a certain extent.
Further, the step S5 includes the steps of:
s5-1: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6; otherwise, executing step S5-2;
s5-2: the notification information is pushed to the administrator, and after receiving the inconsistency reason fed back by the administrator, the process returns to step S2.
Has the advantages that: each application package corresponds to a unique MD5 code, so that whether the application package is changed or not can be judged by checking the MD5 code, if the application package is changed, a message is pushed to an administrator to inform that the MD5 code of the product package issued by the administrator is inconsistent with the original product package and possibly modified, after the administrator finds out the reason, the inconsistent reason is fed back, and the program returns to the step S2; by sending prompt information to the administrator, the administrator can process the emergency in time, release preparation events are shortened, and release efficiency is improved.
Further, the step S2 specifically includes: generating an application package by the MD5 code, the product package and the related information file, and encrypting and sending the application package to a designated directory of a server;
the step S4 further includes the steps of:
s4-1: decrypting the new application package to obtain a product package;
s4-2: resolving the MD5 code of the new product package;
s4-3: the test environment is invoked to obtain the MD5 code of the article package of the initial application package.
Has the advantages that: the application packet is packaged and encrypted, so that the safety of the application packet in the transmission process is ensured, and the risk of data loss of the application packet in the transmission process is reduced.
Further, the step S1 includes the steps of:
s1-1: testing an application version to be released;
s1-2: closing the application version which is tested to obtain a product package, and storing the MD5 code of the product package;
s1-3: and performing secondary verification on the application version subjected to the plate closing, if the verification is passed, executing the step S2, otherwise, returning to the step S1-1.
Has the advantages that: and the application version after the plate is closed is verified for the second time, so that each item of data of the application version is correct, the subsequent detection rate of the consistency of the application package is improved, and the auditing passing rate of operation and maintenance personnel is improved.
Further, the server is an SFTP server.
Has the advantages that: the SFTP server can limit the identity of the visitor, limit the operation of the visitor to the specified directory and ensure the safety of the application package.
Further, the related information file includes version information, a configuration file, and an sql file.
Has the advantages that: the related file information comprises version information, configuration files and sql files, and the release plan created by the method is comprehensive and complete.
Further, the release plan includes a release application name, a current version, a version to be released, a configuration file, and release time.
Has the advantages that: by applying the information such as the name, the current version, the version to be released and the like, operation and maintenance personnel can quickly and correctly check the release plan, and the release efficiency is improved.
Drawings
FIG. 1 is a logic diagram of an embodiment of the present invention;
fig. 2 is a schematic diagram of relationships of the parts according to the embodiment of the present invention.
Detailed Description
The following is further detailed by way of specific embodiments:
the embodiment is basically as shown in the attached figure 1: a method for applying push publishing based on a difference environment comprises the following steps:
s1-1: testing an application version to be released;
s1-2: closing the application version which is tested to obtain a product package, and storing the MD5 code of the product package;
s1-3: performing secondary verification on the application version subjected to the plate closing, if the verification is passed, executing the step S2, otherwise, returning to the step S1-1;
s2: generating an application package from the MD5 code, the product package, the version information, the configuration file and the sql file, and encrypting and sending the application package to a specified directory of a server; the server is an SFTP server;
s3: the issuing system periodically accesses the specified directory and detects whether a new application package is included in the specified directory; if yes, executing step S4, otherwise, looping step S3; the regular visit interval can be set and changed according to requirements;
s4-1: decrypting the new application package to obtain a product package;
s4-2: resolving the MD5 code of the new product package;
s4-3: calling a test environment to obtain an MD5 code of a product package of an initial application package;
s5-1: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6; otherwise, executing step S5-2;
s5-2: prompting information is pushed to a manager to inform that the issued product package MD5 code is inconsistent with the original product package and is possibly modified, and the manager asks for finding out the reason as soon as possible; and after receiving the inconsistency reason fed back by the administrator, returning to the step S2;
s6: acquiring product package information and version information in a new application package, and creating a release plan according to the product package information and the version information; the release plan comprises a release application name, a current version, a version to be released, a configuration file and release time; the publication plan is stored in a database of the publication system.
S7: the operation and maintenance personnel log in the release system, check the release plan, and then execute the release operation if the check is passed; if the audit is not passed, go to step S8;
s8: the user is prompted to explain the reason for the failure of the audit.
And (4) checking the reason of failure of the examination explained by the operation and maintenance personnel by using a responsible person to intervene to check the main problem of the reason, solving the problem and restarting the program after the problem is solved. By counting and checking the failure reasons and solving the problems, the auditing passing rate of the release plan is improved, and the release efficiency is improved.
The scheme enables the test environment to be communicated with the production environment, the application version information can be pushed after the tester finishes the version test, the production environment release system can automatically detect and create a release plan, operation and maintenance personnel do not need to arrange a list to be released again, and the release plan is manually created; the scheme reduces manual operation, enables operation and maintenance personnel to be capable of being concentrated in and issuing operation, does not need to manually verify whether the product package is modified, and improves issuing efficiency and correctness of issuing application version.
The specific implementation process is as follows:
as shown in fig. 2, in a test environment, a tester tests a version to be released first, and after the test is completed, an application package generated by the version to be released is pushed to a specified directory of an SFTP server; the release system in the production environment can detect the application package in the appointed directory of the SFTP server at regular time, decrypt the application package after detecting the new application package, obtain the related information of the new product package and the like, obtain the MD5 code of the new product package, call the test environment API to obtain the MD5 code value of the initial product package, check the MD5 codes of the new product package and the initial product package, if the MD5 codes are consistent, confirm that the initial product package is not changed, automatically create the release plan according to the product package information and the version information, after the creation is finished, audit the release plan, after the audit is passed, the release operation of the application new version can be carried out.
The foregoing are merely exemplary embodiments of the present invention, and no attempt is made to show structural details of the invention in more detail than is necessary for the fundamental understanding of the art, the description taken with the drawings making apparent to those skilled in the art how the several forms of the invention may be embodied in practice with the teachings of the invention. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several changes and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (9)

1. A method for pushing and releasing application based on difference environment is characterized in that: the method comprises the following steps:
s1: testing an application version to be released; closing the application version which is tested to obtain a product package, and storing the MD5 code of the product package;
s2: generating an application package from the product package and the related information file, and sending the application package to a specified directory of the server;
s3: the issuing system accesses the specified directory and detects whether a new application package is included in the specified directory; if yes, executing step S4, otherwise, looping step S3;
s4: acquiring 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;
s5: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6;
s6: and acquiring the related information file in the new application package to create a release plan.
2. The method for push publishing of applications based on a differentiated environment according to claim 1, wherein: further comprising steps S7 and S8:
s7: auditing the release plan, and if the audit is passed, executing release operation; if the audit is not passed, go to step S8;
s8: the user is prompted to explain the reason for the failure of the audit.
3. The method for push publishing of applications based on a differentiated environment according to claim 2, wherein: the step S3 specifically includes: the issuing system periodically accesses the specified directory and detects whether a new application package is included in the specified directory; if so, go to step S4, otherwise loop through step S3.
4. The method for push publishing of applications based on a differentiated environment according to any of claims 1-3, wherein: the step S5 includes the steps of:
s5-1: judging whether the MD5 codes of the new application package and the product package of the initial application package are consistent, if so, executing a step S6; otherwise, executing step S5-2;
s5-2: the notification information is pushed to the administrator, and after receiving the inconsistency reason fed back by the administrator, the process returns to step S2.
5. The method for push publishing of applications based on a differentiated environment according to claim 4, wherein: the step S2 specifically includes: generating an application package by the MD5 code, the product package and the related information file, and encrypting and sending the application package to a designated directory of a server;
the step S4 further includes the steps of:
s4-1: decrypting the new application package to obtain a product package;
s4-2: resolving the MD5 code of the new product package;
s4-3: the test environment is invoked to obtain the MD5 code of the article package of the initial application package.
6. The method for push publishing of applications based on a differentiated environment according to claim 5, wherein: the step S1 includes the steps of:
s1-1: testing an application version to be released;
s1-2: closing the application version which is tested to obtain a product package, and storing the MD5 code of the product package;
s1-3: and performing secondary verification on the application version subjected to the plate closing, if the verification is passed, executing the step S2, otherwise, returning to the step S1-1.
7. The method for push publishing of applications based on a differentiated environment according to any one of claims 1, 2, 3, 5 and 6, wherein: the server is an SFTP server.
8. The method for push publishing of applications based on a differentiated environment according to any one of claims 1, 2, 3, 5 and 6, wherein: the related information file includes version information, a configuration file, and an sql file.
9. The method for push publishing of applications based on a differentiated environment according to any one of claims 1, 2, 3, 5 and 6, wherein: the release plan comprises a release application name, a current version, a version to be released, a configuration file and release time.
CN202111271249.2A 2021-10-29 2021-10-29 Method for pushing and releasing application based on difference environment Pending CN113986331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111271249.2A CN113986331A (en) 2021-10-29 2021-10-29 Method for pushing and releasing application based on difference environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111271249.2A CN113986331A (en) 2021-10-29 2021-10-29 Method for pushing and releasing application based on difference environment

Publications (1)

Publication Number Publication Date
CN113986331A true CN113986331A (en) 2022-01-28

Family

ID=79744305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111271249.2A Pending CN113986331A (en) 2021-10-29 2021-10-29 Method for pushing and releasing application based on difference environment

Country Status (1)

Country Link
CN (1) CN113986331A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254746A1 (en) * 2012-03-26 2013-09-26 Software Ag Systems and/or methods for executing appropriate tests based on code modifications using live, distributed, real-time cache and feedback loop
CN106445485A (en) * 2016-03-28 2017-02-22 中国电力科学研究院 Software version consistency detection system and detection method thereof
CN107729045A (en) * 2017-09-30 2018-02-23 武汉汉思信息技术有限责任公司 Application program automates version dissemination method and system
CN111610989A (en) * 2020-06-17 2020-09-01 中国人民解放军国防科技大学 Application release/update method and system for offline container cloud environment
CN112558994A (en) * 2020-12-23 2021-03-26 上海眼控科技股份有限公司 Application software upgrading method, device, equipment and storage medium
CN113296796A (en) * 2020-02-24 2021-08-24 京东安联财产保险有限公司 Project release method, device, system, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254746A1 (en) * 2012-03-26 2013-09-26 Software Ag Systems and/or methods for executing appropriate tests based on code modifications using live, distributed, real-time cache and feedback loop
CN106445485A (en) * 2016-03-28 2017-02-22 中国电力科学研究院 Software version consistency detection system and detection method thereof
CN107729045A (en) * 2017-09-30 2018-02-23 武汉汉思信息技术有限责任公司 Application program automates version dissemination method and system
CN113296796A (en) * 2020-02-24 2021-08-24 京东安联财产保险有限公司 Project release method, device, system, storage medium and electronic equipment
CN111610989A (en) * 2020-06-17 2020-09-01 中国人民解放军国防科技大学 Application release/update method and system for offline container cloud environment
CN112558994A (en) * 2020-12-23 2021-03-26 上海眼控科技股份有限公司 Application software upgrading method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11121872B2 (en) Trusted verification of cybersecurity remediation
Nathan et al. Blockchain meets database: Design and implementation of a blockchain relational database
US11539748B2 (en) Monitoring and reporting enterprise level cybersecurity remediation
CN102880456B (en) Plug-in loading method and system
CN109194710B (en) System and method for supervising specific personnel behaviors based on block chain and intelligent contract
CN110088744B (en) Database maintenance method and system
CN107807877A (en) A kind of method and apparatus of code performance test
CN107147711A (en) Application service update method and device
CN112667499A (en) Page component testing method and device, computer equipment and storage medium
CN109635522A (en) A kind of tamper resistant method and device of dynamic base
CN113986331A (en) Method for pushing and releasing application based on difference environment
CN106899593B (en) APP repackaging verification method and device
CN112395125A (en) Method and device for notifying page error report, computer equipment and storage medium
US11915236B2 (en) Immutable database for bitemporal analysis
CN113836887A (en) Checking and accepting method for configuration file of intelligent substation
Willmor et al. Testing the implementation of business rules using intensional database tests
US9946534B1 (en) Techniques for automated database deployment
CN112015463A (en) Configuration version management device and working method thereof
CN109240737A (en) A kind of method and system of the packing and issuing in big data platform
CN117034368B (en) Data integrity protection method, device, equipment and storage medium
Zhao et al. How to Manage Change-Induced Incidents? Lessons from the Study of Incident Life Cycle
Chaves A cost effective and preventive approach to avoid integration faults caused by mistakes in distribution of software components
CN115713303A (en) Block chain based production management method and block chain system
CN117234672A (en) Transaction processing method, apparatus, product, device, and medium
Qi et al. Efficient automatic program repair using function-based part-execution

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