CN107621963A - A kind of software deployment method, software deployment system and electronic equipment - Google Patents

A kind of software deployment method, software deployment system and electronic equipment Download PDF

Info

Publication number
CN107621963A
CN107621963A CN201710861079.0A CN201710861079A CN107621963A CN 107621963 A CN107621963 A CN 107621963A CN 201710861079 A CN201710861079 A CN 201710861079A CN 107621963 A CN107621963 A CN 107621963A
Authority
CN
China
Prior art keywords
software
file
default
deployment
structure product
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.)
Granted
Application number
CN201710861079.0A
Other languages
Chinese (zh)
Other versions
CN107621963B (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.)
Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
Original Assignee
Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
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 Shenzhen Maimaiti Tesco Nationwide Financial Services Inc filed Critical Shenzhen Maimaiti Tesco Nationwide Financial Services Inc
Priority to CN201710861079.0A priority Critical patent/CN107621963B/en
Publication of CN107621963A publication Critical patent/CN107621963A/en
Application granted granted Critical
Publication of CN107621963B publication Critical patent/CN107621963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of software deployment method, software deployment system, electronic equipment and computer-readable recording medium, wherein, the software deployment method includes:Obtain the structure product related to the software that this is tested and transfer description file;The default first script detection structure product and described transfer is called to describe whether file meets default test condition;If the structure product and the description file of transferring are satisfied by default test condition, default second script is called, is that the software carries out test deployment in target detection main frame based on the structure product and the transfer description file.The inventive method can improve the efficiency for software test deployment.

Description

A kind of software deployment method, software deployment system and electronic equipment
Technical field
The invention belongs to areas of information technology, more particularly to a kind of software deployment method, software deployment system, electronic equipment And computer-readable recording medium.
Background technology
Delivery process of existing IT industry (Information Technology, the IT) enterprise in software product In, it will usually introduce some instruments and carry out indirect labor's completion particular job, such as when tester needs to test software When, it is necessary to by operation maintenance personnel in advance under the auxiliary of software deployment instrument and customizing script, software is carried out in a manual manner Test deployment;After the completion of test is disposed, tester can be tested software.
The content of the invention
The invention provides a kind of software deployment method, software deployment system, electronic equipment and computer-readable storage medium Matter, it is intended to improve the efficiency for software test deployment.
The first aspect of the present invention provides a kind of software deployment method, and the software deployment method includes:
Obtain the structure product related to the software that this is tested and transfer description file;
The default first script detection structure product and described transfer is called to describe whether file meets default survey Strip part;
If the structure product and the description file of transferring are satisfied by default test condition, default second is called Script, file is described based on the structure product and described transfer, be that the software carries out test department in target detection main frame Administration.
The second aspect of the present invention provides a kind of software deployment system, and the software deployment system includes:
First acquisition module, for obtain the structure product related to the software that this is tested, test input parameter and Transfer description file;
First calling module, for calling the default first script detection structure product and described transfer to describe file Whether default test condition is met;
Second calling module, for being satisfied by default test condition when the structure product and the description file of transferring When, default second script is called, file is described based on the structure product and described transfer, is institute in target detection main frame State software and carry out test deployment.
The third aspect of the present invention provides a kind of electronic equipment, the electronic equipment include memory, processor and It is stored in the computer program that can be run in the memory and on the processor, it is characterised in that the processor is held The step of as above first aspect methods described being realized during the row computer program.
The fourth aspect of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium is deposited Contain computer program, it is characterised in that side described in as above first aspect is realized when the computer program is executed by processor The step of method.
Therefore by the present invention program, the structure product related to the software that this is tested and shifting are obtained first Hand over description file, then call the default first script detection structure product and it is described transfer description file whether meet it is pre- If test condition, when the structure product and it is described transfer description file and be satisfied by default test condition when, call default The second script, based on the structure product and it is described transfer description file, be that the software is carried out in target detection main frame Test deployment.The present invention program by calling script to carry out test deployment to software, dispose by the test that automation can be achieved, and then Substantially increase the efficiency of test deployment.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process figure of software deployment method provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure of another software deployment method provided in an embodiment of the present invention;
Fig. 3 is the implementation process figure of the third software deployment method provided in an embodiment of the present invention;
Fig. 4 is the structured flowchart of software deployment system provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
Fig. 1 shows the implementation process for the software deployment method that the embodiment of the present invention one provides, and details are as follows:
In step S101, obtain the structure product related to the software that this is tested and transfer description file;
In embodiments of the present invention, the structure product related to the software that this is tested is obtained first and transfers description text Part.The product that above-mentioned structure product, specially software are obtained after build structure operations are performed, including software perform Executable program, configuration file and the output data obtained after build structure operations.It is JSON lattice that above-mentioned transfer, which describes file, The file of formula, it is specially to apply to Java transmission standard file, has embedded the rule of software deployment method in this document Model designs, and is the basis of above-mentioned software deployment method operation.Above-mentioned transfer describe file content be specifically including but not limited to Lower data:File (files) data, configure (configs) data and database (sqls) data;Specifically, above-mentioned number of files According to including:Component type (component), operation (action), source file (filename) and file destination (destfilename), wherein, operation specifically includes increase (add), renewal (update) and deletes (delete);Above-mentioned configuration Data include:Component type (component), operation (action), file destination (destfilename), configuration item key assignments (key) and environment value list, wherein, operation specifically includes increase (add), renewal (update) and deletion (delete);It is above-mentioned Database data includes:Type of database and script listing, wherein, above-mentioned type of database includes mysql and oracle.Need It is noted that some data in description file are transferred, such as component type, operation and file destination, both belong to file data Content, fall within the content of configuration data.
In step s 102, call whether the default first script above-mentioned structure product of detection and above-mentioned transfer describe file Meet default test condition;
In embodiments of the present invention, after structure product is obtained in step S101 and transfers description file, can call pre- If the first script parse above-mentioned transfer and describe file, then recall first script and detect above-mentioned structure product and above-mentioned shifting Hand over whether description file meets default test condition.The test condition can be preset by developer, be not construed as limiting herein. Specifically, above-mentioned first script is Shell scripts.
In step s 103, if above-mentioned structure product and above-mentioned transfer, which describe file, is satisfied by default test condition, Default second script is called, file is described based on above-mentioned structure product and above-mentioned transfer, is in above-mentioned target detection main frame Above-mentioned software carries out test deployment.
In embodiments of the present invention, after step S103 determines target detection main frame, default second script is called, is based on Above-mentioned structure product and above-mentioned transfer describe file, are that above-mentioned software carries out test deployment in above-mentioned target detection main frame.Tool Body, above-mentioned second script is Shell scripts.
Alternatively, above-mentioned software deployment method also includes:
Obtain the test input parameter related to the software that this is tested;
Based on above-mentioned test input parameter, target detection main frame is determined;
Wherein, above-mentioned test input parameter can be by calling a default Shell scripts to obtain.Specifically, above-mentioned survey Examination input parameter includes:System coding and environment coding;Based on above-mentioned test input parameter, target detection main frame is determined, including: The Shell scripts specified are called, is inquired about according to the system coding of acquisition and environment coding from default deployment platform and determines mesh Test main frame is marked, and obtains the host information of the target detection main frame, above-mentioned host information includes but is not limited to target detection master Interconnection protocol (Internet Protocol, IP) address between the network of machine.Alternatively, it is determined that after target detection main frame, go back Above-mentioned target detection main frame can be verified, including public key, private key and state of the above-mentioned target detection main frame of checking etc..
Alternatively, above-mentioned steps S103 includes:
Default second script is called, is performed in above-mentioned target detection main frame stop service operations, cleaning caching successively Operate, replicate above-mentioned transfer and describe file operation, replicate the operation of above-mentioned structure product, start service operations;
After above-mentioned steps S103, above-mentioned software deployment method also includes:
Call test platform, based on above-mentioned test platform and above-mentioned test input parameter in above-mentioned target detection main frame it is right Above-mentioned structure product is tested.
Wherein, above-mentioned test input parameter includes the survey of this test in addition to including system coding, environment coding Try type.When carrying out test deployment, need to stop the service of target detection main frame first, and clear up the slow of target detection main frame Deposit, step S101 is then obtained into transfer description file and structure product is copied in target detection main frame respectively, with structure The test environment of target detection main frame, finally start the service of target detection main frame, complete test deployment.This process has got biography The operation for being stopped servicing manually by developer, replicate file, starting service of system, compiling link and test deployment ring are saved The stand-by period of section.After the completion of test is disposed, test platform can be called, the system that the software tested with this is first closed is compiled The input of code, environment coding and test-types as test platform, automatic test is carried out to above-mentioned software and is completed in test After return to test result.Wherein, above-mentioned test-types include but is not limited to smoke test, regression test, are not construed as limiting herein.
Therefore by the embodiment of the present invention, when needing to test software, script can be called to determine target Test main frame, and deployment of the realization to the test environment of software in target detection main frame, compiling is saved and has tested deployment Stand-by period, improve the efficiency of test deployment.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Embodiment two
On the basis of embodiment one, Fig. 2 shows the reality for another software deployment method that the embodiment of the present invention two provides Existing flow, details are as follows:
In step s 201, the structure for obtaining and parsing above-mentioned software describes file, obtains the structure related to above-mentioned software Build product;
In embodiments of the present invention, whether the code set being periodically detected first in code library changes, wherein, it is above-mentioned The intersection for all softwares that code library is developed by enterprise, is stored in the management tools such as svn or git.Each software is in above-mentioned generation Occupy mutually different address in code storehouse, and each software has transfer number corresponding to it;When developer is to a certain in code library When the code of software is modified, its transfer number can change.Therefore, can using the transfer corresponding to each software as The foundation whether code set in code library is changed is judged, when the transfer number hair for detecting a certain software in code library During raw change, it is determined that the code set in code library is changed, and is obtained and is parsed the structure of the above-mentioned software changed Build description file build.properties.Specifically, above-mentioned structure, which describes file, includes:The build tool, the build tool Version, the version of compiler language, structure coding, structure notify list, structure performs file and structure product catalog.Performing After above-mentioned structure describes file, select that software environment corresponding with above-mentioned software completes compiling, unit testing, code quality are examined The work of packing is looked into and builds, to obtain the structure product related to above-mentioned software.
In step S202, default third scenario is called, above-mentioned structure product and default description file of transferring are answered Make to the specified location in default file server;
In embodiments of the present invention, default third scenario can be called, above-mentioned structure product and default transfer are retouched State file and carry out turning-over operation.Specifically, above-mentioned third scenario is Python scripts.It is alternatively possible to first call the above-mentioned 3rd Script describes file to above-mentioned transfer and parsed, to obtain the configuration data that above-mentioned transfer describes file and included, and will be upper State structure product and above-mentioned transfer describes the specified location that file transmits and is copied to default file server, wherein, it is above-mentioned Specified location is based on above-mentioned configuration data and system coding together decides on.By calling default third scenario, tradition is eliminated Structure after the completion of need imagineering to build the operation of product, efficiency is further improved.
In step S203, obtain above-mentioned structure product from the specified location in above-mentioned file server and above-mentioned transfer is retouched State file;
In embodiments of the present invention, obtain from the specified location of the file server in step S202 and tested with this The related structure product of software and transfer description file.Wherein, after the completion of structure, the relevant parameter in building process is protected It is left behind, and is used during deployment is tested.
In step S204, call whether the default first script above-mentioned structure product of detection and above-mentioned transfer describe file Meet default test condition;
In step S205, if above-mentioned structure product and above-mentioned transfer, which describe file, is satisfied by default test condition, Default second script is called, file is described based on above-mentioned structure product and above-mentioned transfer, is above-mentioned in target detection main frame Software carries out test deployment.
In embodiments of the present invention, above-mentioned steps S204 and S205 implementations with above-mentioned steps S102 and S103 respectively It is same or similar, step S102 and S103 associated description is for details, reference can be made to, will not be repeated here.
Therefore by the embodiment of the present invention, can call script built after the completion of turning-over operation, save significantly The about structure of above-mentioned software and the efficiency of transfer;And when needing to test software, script can be called to determine target Test main frame, and deployment of the realization to the test environment of software in target detection main frame, compiling is saved and has tested deployment Stand-by period, improve the efficiency of test deployment.
Embodiment three
On the basis of embodiment one, Fig. 3 shows the third software deployment method that the embodiment of the present invention three provides Implementation process, details are as follows:
In step S301, obtain the structure product related to the software that this is tested and transfer description file;
In step s 302, call whether the default first script above-mentioned structure product of detection and above-mentioned transfer describe file Meet default test condition;
In step S303, if above-mentioned structure product and above-mentioned transfer, which describe file, is satisfied by default test condition, Default second script is called, file is described based on above-mentioned structure product and above-mentioned transfer, is above-mentioned in target detection main frame Software carries out test deployment;
In embodiments of the present invention, above-mentioned steps S301, S302 and S303 respectively with above-mentioned steps S101, S102 and S103 Implementation it is same or similar, for details, reference can be made to step S101, S102 and S103 associated description, will not be repeated here.
In step s 304, whether above-mentioned software is detected in production issued state;
It is above-mentioned soft in target produces main frame if above-mentioned software is in production issued state in step S305 Part carries out production deployment.
In embodiments of the present invention, after test deployment is completed and software is tested, when above-mentioned test is disposed Relevant parameter retain, and call default 4th script whether to detect above-mentioned software in production issued state.It is if above-mentioned soft Part is in production issued state, it is determined that and target produces main frame and performs production transfer and production deployment, wherein, perform production The detailed process transferred and perform production deployment is similar to above-mentioned steps S301 to S303, but does not use test input parameter, But use production input parameter;Also, the production environment obtained after above-mentioned production deployment will be synchronized in test environment, So that test environment is identical with production environment.
Alternatively, before above-mentioned steps S305, above-mentioned software deployment method also includes:
Target production main frame is determined in the main frame for be currently at idle condition.
Wherein it is possible to target production main frame is determined in a manner of being randomly assigned in the main frame of idle condition all, To ensure that target production main frame can be called to carry out production deployment.
Alternatively, after above-mentioned steps S305, above-mentioned software deployment method also includes:
Default 4th script is called, verifies whether above-mentioned production deployment succeeds;
If above-mentioned production deployment has succeeded, all scripts in above-mentioned target production main frame are backed up.
Wherein it is possible to continue to call above-mentioned 4th script, tested based on the default production deployment rule of software deployment system Demonstrate,prove whether the operation of above-mentioned production deployment succeeds, for example, being logged in by simulation, simulate and the mode such as ask to have carried out production department to above-mentioned The target production main frame of administration is verified, is substituted by this in a manner of traditional manual verification.Specifically, above-mentioned 4th script is Shell scripts.When it is determined that production deployment is successful, all scripts in above-mentioned target production main frame are backed up, and simultaneously in backup The target production main frame information related to production deployment is stated, if with this so that subsequently there are abnormal feelings in target produces main frame During condition, script that rollback has been backed up and the production deployment relevant information backed up can be passed through so that target production main frame can State back to normal.
Therefore by the embodiment of the present invention, when needing to test software, script can be called to determine target Test main frame, and the automatic deployment realized to the test environment of software in target detection main frame, have saved compiling and test department The stand-by period of administration, improve the efficiency of test deployment;And life can also be performed automatically by script after the completion of test is disposed Production deployment, further increase the efficiency of issue software.
Example IV
Fig. 4 shows the concrete structure block diagram of software deployment system provided in an embodiment of the present invention, for convenience of description, only Show the part related to the embodiment of the present invention.The software deployment system 4 includes:First acquisition module 41, first calls mould Block 42, the second calling module 43.
Wherein, the first acquisition module 41, for obtaining the structure product related to the software that this is tested, test input Parameter and transfer description file, wherein, above-mentioned transfer describes the file that file is JSON forms;
First calling module 42, for calling default first script to detect above-mentioned structure product and above-mentioned transfer description text Whether part meets default test condition;
Second calling module, for describing file when above-mentioned structure product and above-mentioned transfer and being satisfied by default test condition When, call default second script, file described based on above-mentioned structure product and above-mentioned transfer, be in target detection main frame on State software and carry out test deployment.
Alternatively, above-mentioned software deployment system 4 also includes:
Second acquisition module, the structure for obtaining above-mentioned software describe file;
Parsing module, the structure for parsing above-mentioned software describe file, obtain the structure product related to above-mentioned software;
3rd calling module, for calling default third scenario, text is described into for above-mentioned structure product and default transfer Part is copied to the specified location in default file server;
Above-mentioned first acquisition module 41, produced specifically for obtaining above-mentioned structure from the specified location in above-mentioned file server Thing and above-mentioned transfer describe file.
Alternatively, above-mentioned software deployment system 4 also includes:
3rd acquisition module, for obtaining the test input parameter related to the software that this is tested;
Target detection main frame determining module, for determining above-mentioned target detection main frame based on above-mentioned test input parameter.
Alternatively, above-mentioned second calling module 43, specifically for calling default second script, surveyed successively in above-mentioned target Try execution stopping service operations in main frame, cleaning caching, the above-mentioned transfer of duplication describes file operation, the above-mentioned structure of duplication produces Thing operation, start service operations;
Above-mentioned software deployment system 4 also includes:
Calling module is tested, for calling test platform, based on above-mentioned test platform and above-mentioned test input parameter upper State in target detection main frame and above-mentioned structure product is tested.
Alternatively, above-mentioned software deployment system 4 also includes:
State detection module, for whether detecting above-mentioned software in production issued state;
Production deployment module, for being that above-mentioned software carries out production deployment in producing main frame in target, wherein, above-mentioned production The test environment that the production environment obtained after deployment is obtained after being disposed with above-mentioned test is identical.
Alternatively, above-mentioned software deployment system 4 also includes:
Target produces main frame determining module, for determining target production main frame in the main frame for be currently at idle condition.
Alternatively, above-mentioned software deployment system 4 also includes:
4th calling module, for calling default 4th script, verify whether above-mentioned production deployment succeeds;
Backup module, for when above-mentioned production deployment succeeds, backing up all scripts in above-mentioned target production main frame.
Therefore by the embodiment of the present invention, software deployment system can call script built after the completion of shifting Operation is handed over, greatlys save the structure of above-mentioned software and the efficiency of transfer;And when needing to test software, it can call Script determines target detection main frame, and the automatic deployment realized to the test environment of software in target detection main frame, saves Compiling and the stand-by period of test deployment, improve the efficiency of test deployment;And pin can also be passed through after the completion of test is disposed This automatic efficiency for performing production deployment, further increasing issue software.
Embodiment five
Fig. 5 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.As shown in figure 5, the electronic equipment 5 of the embodiment Including:Processor 50, memory 51 and it is stored in the calculating that can be run in above-mentioned memory 51 and on above-mentioned processor 50 Machine program 52, such as software deployment program.Above-mentioned processor 50 realizes above-mentioned each method when performing above computer program 52 Step in embodiment, such as the step S101 to S103 shown in Fig. 1.Or above-mentioned processor 50 performs above computer journey The function of each module in above-mentioned each system embodiment, such as the function of module 41 to 43 shown in Fig. 4 are realized during sequence 52.
Exemplary, above computer program 52 can be divided into one or more modules, said one or multiple Module is stored in above-mentioned memory 51, and is performed by above-mentioned processor 50, to complete the present invention.Said one or multiple moulds Block can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe above computer journey Implementation procedure of the sequence 52 in above-mentioned electronic equipment 5.For example, above computer program 52 can be divided into the first acquisition mould Block, the first calling module, the second calling module.Each module concrete function is as follows:
First acquisition module, for obtain the structure product related to the software that this is tested, test input parameter and Description file is transferred, wherein, above-mentioned transfer describes the file that file is JSON forms;
First calling module, for calling, default first script detects above-mentioned structure product and above-mentioned transfer describes file Whether default test condition is met;
Second calling module, for describing file when above-mentioned structure product and above-mentioned transfer and being satisfied by default test condition When, default second script is called, file is described based on above-mentioned structure product and above-mentioned transfer, in above-mentioned target detection main frame Test deployment is carried out for above-mentioned software.
Above-mentioned electronic equipment 5 can be desktop PC, notebook, palm PC, smart mobile phone and intelligent watch etc. Computing device.Above-mentioned electronic equipment may include, but be not limited only to, processor 50, memory 51.Those skilled in the art can manage Solution, Fig. 5 is only the example of electronic equipment 5, does not form the restriction to electronic equipment 5, can be included more more or more than illustrating Few part, some parts or different parts are either combined, such as above-mentioned electronic equipment 5 can also include input and output Equipment, network access equipment, bus etc..
Alleged processor 50 can be central processing module (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
Above-mentioned memory 51 can be the storage inside module of above-mentioned electronic equipment 5, such as the hard disk of electronic equipment 5 or interior Deposit.Above-mentioned memory 51 can also be the External memory equipment of above-mentioned electronic equipment 5, such as be equipped with above-mentioned electronic equipment 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge Deposit card (Flash Card) etc..Further, above-mentioned memory 51 can also both include the storage inside mould of above-mentioned electronic equipment 5 Block also includes External memory equipment.Above-mentioned memory 51 is used to store needed for above computer program and above-mentioned electronic equipment 5 Other programs and data.Above-mentioned memory 51 can be also used for temporarily storing the data that has exported or will export.
Therefore by the embodiment of the present invention, electronic equipment can call script built after the completion of transfer behaviour Make, greatly save the structure of above-mentioned software and the efficiency of transfer;And when needing to test software, script can be called Target detection main frame, and the automatic deployment realized to the test environment of software in target detection main frame are determined, has saved compiling And the stand-by period of test deployment, improve the efficiency that test is disposed;And can also be by script certainly after the completion of test is disposed It is dynamic to perform production deployment, further increase the efficiency of issue software.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can module, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional module, module are completed, i.e., the internal structure of said system is divided into different functional modules, described above to complete All or part of function.Each functional module in embodiment can be integrated in a processing module or each mould Block is individually physically present, can also two or more modules be integrated in a module, above-mentioned integrated module both can be with Realized, can also be realized in the form of software function module in the form of hardware.In addition, the specific name of each functional module Also only to facilitate mutually distinguishing, it is not limited to the protection domain of the application.The specific works of module in said system Process, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the mould of each example described with reference to the embodiments described herein Block and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system/electronic equipment and method, can be with Realize by another way.For example, system described above/electronic equipment embodiment is only schematical, for example, on The division of module is stated, only a kind of division of logic function, can there is other dividing mode, such as multiple moulds when actually realizing Block or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, Shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, system module INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The above-mentioned module illustrated as separating component can be or may not be physically separate, show as module The part shown can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If above-mentioned integrated module is realized in the form of software function module and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-described embodiment side All or part of flow in method, by computer program the hardware of correlation can also be instructed to complete, above-mentioned computer Program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned each when being executed by processor The step of individual embodiment of the method..Wherein, above computer program includes computer program code, above computer program code Can be source code form, object identification code form, executable file or some intermediate forms etc..Above computer computer-readable recording medium can With including:Can carry any entity or device of above computer program code, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above computer The content that computer-readable recording medium includes can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, such as In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electric carrier signal and telecommunications letter Number.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

  1. A kind of 1. software deployment method, it is characterised in that the software deployment method includes:
    Obtain the structure product related to the software that this is tested and transfer description file;
    The default first script detection structure product and described transfer is called to describe whether file meets default test-strips Part;
    If the structure product and the description file of transferring are satisfied by default test condition, default crus secunda is called This, describes file based on the structure product and described transfer, is that the software carries out test deployment in target detection main frame.
  2. 2. software deployment method as claimed in claim 1, it is characterised in that the acquisition is related to the software that this is tested Structure product and transfer description file, also include before:
    The structure for obtaining and parsing the software describes file, obtains the structure product related to the software;
    Default third scenario is called, the structure product and default description file of transferring are copied to default file service Specified location in device;
    It is described to obtain the structure product related to the software that this is tested and transfer description file, including:
    The structure product is obtained from the specified location in the file server and described transfer describes file.
  3. 3. software deployment method as claimed in claim 1, it is characterised in that the software deployment method also includes:
    Obtain the test input parameter related to the software that this is tested;
    The target detection main frame is determined based on the test input parameter.
  4. 4. software deployment method as claimed in claim 3, it is characterised in that it is described to call default second script, based on institute State structure product and described transfer describes file, be that the software carries out test deployment in target detection main frame, including:
    Call default second script, successively in the target detection main frame perform stop service operations, cleaning caching, Described transfer is replicated to describe file operation, replicate the structure product operation, start service operations;
    It is described to call default second script, file is described based on the structure product and described transfer, in target detection main frame In be that the software carries out test deployment, also include afterwards:
    Call test platform, based on the test platform and it is described test input parameter in the target detection main frame to described Structure product is tested.
  5. 5. the software deployment method as described in any one of Claims 1-4, it is characterised in that described to call default crus secunda This, describes file based on the structure product and described transfer, is that the software carries out test deployment in target detection main frame, Also include afterwards:
    The software is detected whether in production issued state;
    If the software is that the software carries out production deployment in target produces main frame in production issued state, its In, the production environment obtained after the production deployment is identical with the test environment obtained after the test deployment.
  6. 6. software deployment method as claimed in claim 5, it is characterised in that described is the software in target produces main frame Production deployment is carried out, is also included afterwards:
    Default 4th script is called, verifies whether the production deployment succeeds;
    If the production deployment has succeeded, all scripts in the target production main frame are backed up.
  7. 7. a kind of software deployment system, it is characterised in that the software deployment system includes:
    First acquisition module, for obtaining the structure product related to the software that this is tested, test input parameter and transfer File is described;
    First calling module, for calling whether the default first script detection structure product and described transfer describe file Meet default test condition;
    Second calling module, for when it is described structure product and it is described transfer description file be satisfied by default test condition when, Default second script is called, file is described based on the structure product and described transfer, is described in target detection main frame Software carries out test deployment.
  8. 8. software deployment system as claimed in claim 7, it is characterised in that the software deployment system also includes:
    Second acquisition module, the structure for obtaining the software describe file;
    Parsing module, the structure for parsing the software describe file, obtain the structure product related to the software;
    3rd calling module, for calling default third scenario, the structure product and default description file of transferring are answered Make to the specified location in default file server;
    First acquisition module, specifically for obtaining the structure product and institute from the specified location in the file server State transfer description file.
  9. 9. a kind of electronic equipment, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 6 described in the computing device during computer program The step of any one methods described.
  10. 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 6 methods described.
CN201710861079.0A 2017-09-21 2017-09-21 Software deployment method, software deployment system and electronic equipment Active CN107621963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710861079.0A CN107621963B (en) 2017-09-21 2017-09-21 Software deployment method, software deployment system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710861079.0A CN107621963B (en) 2017-09-21 2017-09-21 Software deployment method, software deployment system and electronic equipment

Publications (2)

Publication Number Publication Date
CN107621963A true CN107621963A (en) 2018-01-23
CN107621963B CN107621963B (en) 2020-11-27

Family

ID=61090602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710861079.0A Active CN107621963B (en) 2017-09-21 2017-09-21 Software deployment method, software deployment system and electronic equipment

Country Status (1)

Country Link
CN (1) CN107621963B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240994A (en) * 2018-08-01 2019-01-18 北京奇虎科技有限公司 A kind of document handling method and device
CN109947458A (en) * 2019-03-22 2019-06-28 广东电网有限责任公司 A kind of offline source code security continuous integrating method
CN110308911A (en) * 2019-07-09 2019-10-08 西安点告网络科技有限公司 Software program delivery method, device, terminal and storage medium
CN110490483A (en) * 2019-08-26 2019-11-22 中国建设银行股份有限公司 Operation method, apparatus, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181800A1 (en) * 2012-12-14 2014-06-26 Telefonaktiebolaget L M Ericsson (Publ) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
CN106970818A (en) * 2017-03-27 2017-07-21 深圳市中博睿存信息技术有限公司 A kind of software continuous integrated approach and device for Linux platform
CN107066292A (en) * 2017-03-06 2017-08-18 北京百度网讯科技有限公司 Server environment dispositions method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140181800A1 (en) * 2012-12-14 2014-06-26 Telefonaktiebolaget L M Ericsson (Publ) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
US20150378718A1 (en) * 2012-12-14 2015-12-31 Telefonaktiebolaget L M Ericsson (Publ) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
CN107066292A (en) * 2017-03-06 2017-08-18 北京百度网讯科技有限公司 Server environment dispositions method and device
CN106970818A (en) * 2017-03-27 2017-07-21 深圳市中博睿存信息技术有限公司 A kind of software continuous integrated approach and device for Linux platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
REBLUE520: "持续集成之⑤:jenkins结合脚本实现代码自动化部署及一键回滚至上一版本", 《HTTPS://WWW.CNBLOGS.COM/REBLUE520/P/7146693.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240994A (en) * 2018-08-01 2019-01-18 北京奇虎科技有限公司 A kind of document handling method and device
CN109947458A (en) * 2019-03-22 2019-06-28 广东电网有限责任公司 A kind of offline source code security continuous integrating method
CN110308911A (en) * 2019-07-09 2019-10-08 西安点告网络科技有限公司 Software program delivery method, device, terminal and storage medium
CN110490483A (en) * 2019-08-26 2019-11-22 中国建设银行股份有限公司 Operation method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN107621963B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN108268253B (en) Interface code generation method and terminal equipment
CN107621963A (en) A kind of software deployment method, software deployment system and electronic equipment
CN107766236A (en) Test assignment automatic management method, apparatus, equipment and storage medium
CN104679532B (en) kernel module loading method and device
CN109814877A (en) Project dispositions method and its device based on environmental management
CN109814944A (en) Configuring management method and Related product
CN107679423A (en) Partition integrity inspection method and device
CN110865806A (en) Code processing method, device, server and storage medium
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN102857817B (en) Set-top box production system and method capable of realizing dynamical loading
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN108459960A (en) Method of automatic configuration, device, equipment and the storage medium of test environment
CN109753767B (en) Software distribution and updating method and device based on block chain, server and client
CN116599881A (en) Cloud platform tenant modeling test method, device, equipment and storage medium
Annett Working with Legacy Systems: A practical guide to looking after and maintaining the systems we inherit
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN111435306A (en) Code management method and device
CN114895916A (en) Code deployment method, device, storage medium and electronic equipment
CN109240737A (en) A kind of method and system of the packing and issuing in big data platform
CN114741577B (en) Service data management method, system, electronic equipment and readable storage medium
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN112948480B (en) Data extraction method, device, electronic equipment and storage medium
CN103793664B (en) Method and device for managing copies in cloud storage system
CN109471790A (en) Send nuclear parameter comparison method and device, computer installation and readable storage medium storing program for executing
CN115543227B (en) Cross-system data migration method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 Room 201, A building, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.):No. 1701, 1702B, A, New Hao one town, No. 7018 Cai Tian Road, Futian, Shenzhen

Applicant after: Maimaiti Mdt InfoTech Ltd, Shenzhen

Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Applicant before: Shenzhen Maimaiti Tesco Nationwide Financial Services Inc

CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 201, Building A, No. 1 Qianwan Road, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong 518000:No. 1701, 1702B, A, New Hao one town, No. 7018 Cai Tian Road, Futian, Shenzhen 518000 Room 201, No. 1 A (Qianhai business secretary, Shenzhen, Shenzhen City, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen City, Guangdong)

Applicant after: Shenzhen Rongyimai Information Technology Co., Ltd.

Address before: Room 201, Building A, No. 1 Qianwan Road, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong 518000:No. 1701, 1702B, A, New Hao one town, No. 7018 Cai Tian Road, Futian, Shenzhen 518000 Room 201, No. 1 A (Qianhai business secretary, Shenzhen, Shenzhen City, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen City, Guangdong)

Applicant before: Maimaiti Mdt InfoTech Ltd, Shenzhen

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant