CN107450941B - Automatic packaging method, device, storage medium and computer equipment - Google Patents
Automatic packaging method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN107450941B CN107450941B CN201710495287.3A CN201710495287A CN107450941B CN 107450941 B CN107450941 B CN 107450941B CN 201710495287 A CN201710495287 A CN 201710495287A CN 107450941 B CN107450941 B CN 107450941B
- Authority
- CN
- China
- Prior art keywords
- packaging
- source code
- packaged
- installation package
- instruction
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to an automatic packaging method, an automatic packaging device, a storage medium and computer equipment. And receiving a request sent by the browser for acquiring the packaging page integrated in the continuous integration system so as to enable the browser to acquire the packaging page. And acquiring a packaging instruction from the packaging page, acquiring a source code to be packaged according to the packaging instruction, packaging the source code according to the packaging instruction to generate an installation package, and uploading the installation package to a target server. The packaging function is integrated into the continuous integration system, and the packaging page integrated in the continuous integration system can be accessed through the browser to be packaged. According to the method, the computer can be packaged only by a browser, and a special packaging tool is not required to be installed. And only a packing instruction is required to be input on a packing page according to a packing requirement during packing, so that the source code can be packed without contacting the source code, and therefore, a developer does not need to pack, and the time and energy of the developer are saved.
Description
Technical Field
The invention relates to the technical field of internet, in particular to an automatic packaging method, an automatic packaging device, a storage medium and computer equipment.
Background
Software development is mainly divided into the following steps of requirement analysis, detailed design, development, testing and deployment. Packaging is often required frequently in the middle and later stages of the whole development, namely, in the development, testing and deployment stages. In the traditional packaging method, a special packaging tool is required to be installed for packaging, and some parameter configuration information needs to be modified in source codes in the packaging process, so that the specialty is high, and only developers can package the data. The cumbersome packing work wastes time and energy of developers.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a storage medium and a computer device for solving the above technical problems.
An automatic packaging method, the method comprising:
receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system, so that the browser acquires the packaging page;
acquiring a packaging instruction from the packaging page;
acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package;
and uploading the installation package to a target server.
In one embodiment, the method further comprises:
and acquiring a receiver mailbox address from the packaging page, and sending a notification to the receiver mailbox address after uploading the installation package to a target server, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information stored on the target server by the installation package.
In one embodiment, the obtaining the source code to be packed according to the packing instruction includes:
judging whether the source code needing to be packaged exists locally or not according to the packaging instruction;
if yes, acquiring the source code needing to be packaged from the local;
if not, the source code needing to be packaged is obtained from the source code storage server.
In one embodiment, the packing instruction includes: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
In one embodiment, the obtaining a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package includes:
acquiring the source code to be packaged according to the version information of the source code to be packaged;
acquiring correspondingly configured debugging parameter information according to the packed environment information;
modifying corresponding parameters in the source code according to the debugging parameter information;
and packaging the source code with the modified parameters to generate an installation package.
An automatic packaging apparatus, the apparatus comprising:
the packaging page acquisition module is used for receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system so as to enable the browser to acquire the packaging page;
the packaging instruction acquisition module is used for acquiring a packaging instruction from the packaging page;
the installation package generating module is used for acquiring a source code to be packaged according to the packaging instruction and packaging the source code according to the packaging instruction to generate an installation package;
and the uploading module is used for uploading the installation package to a target server.
In one embodiment, the apparatus further comprises: and the notification sending module is used for acquiring a receiver mailbox address from the packaging page and sending a notification to the receiver mailbox address after the installation package is uploaded to a target server, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information of the installation package stored on the target server.
In one embodiment, the installation package generating module is configured to determine whether the source code to be packaged exists locally according to the packaging instruction; if yes, acquiring the source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system, so that the browser acquires the packaging page;
acquiring a packaging instruction from the packaging page;
acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package;
and uploading the installation package to a target server.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system, so that the browser acquires the packaging page;
acquiring a packaging instruction from the packaging page;
acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package;
and uploading the installation package to a target server.
According to the automatic packaging method, the device, the storage medium and the computer equipment, the continuous integration server receives a request for acquiring the packaging page integrated in the continuous integration system, which is sent by the browser, so that the browser can acquire the packaging page. The continuous integration server acquires a packaging instruction from the packaging page, acquires a source code to be packaged according to the packaging instruction, packages the source code according to the packaging instruction to generate an installation package, and uploads the installation package to a target server. And integrating the packaging function into the continuous integration system, and accessing a packaging page integrated in the continuous integration system through a browser so as to package. Therefore, the computer can be packaged only by a browser without installing a special packaging tool. And only need input the packing instruction according to the demand of packing on the packing page during packing, just can realize the packing to the source code, need not contact the source code, so do not need to be packed by the developer, can pack by other personnel to developer's time energy has been saved.
Drawings
FIG. 1 is a diagram of an application environment for an automatic packaging method in one embodiment;
FIG. 2 is an internal block diagram of a server in one embodiment;
FIG. 3 is a flow diagram of a method for automatic packaging in one embodiment;
FIG. 4 is a flow diagram of a method for automatic packaging in one embodiment;
FIG. 5 is a flow diagram of the packaging of FIG. 3 to generate an installation package;
FIG. 6 is a schematic structural diagram of an automatic packing apparatus in one embodiment;
fig. 7 is a schematic structural diagram of an automatic packing device in another embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Continuous Integration (CI) is a software development practice. In a continuous integration system, team members frequently integrate their work product, typically at least once per person per day, and possibly more. Each integration is verified by automated build (including compilation, release, automated testing) to discover integration errors as soon as possible. Many teams find this approach to significantly reduce integration-induced problems and speed team collaborative software development.
In the general software development process, functions such as compiling, publishing, automation testing and the like can be completed in the continuous integration system, but the software packaging work cannot be completed in the continuous integration system. When packaging is performed, a special packaging tool needs to be installed to perform packaging, and different environments, log levels and debugging of relevant parameters in source codes need to be configured. The packaging work has high specialty, and only developers can pack the objects. Especially in mobile application development, a developer may need to pack a plurality of test packages at the same time, and the time and energy of the developer are wasted due to the complicated packing work.
Therefore, referring to fig. 1, in the embodiment of the present invention, the packaging function is integrated into a persistent integration system, and the persistent integration system is disposed on a persistent integration server 110. The packing staff accesses the persistent integration server 110 through the browser, specifically accesses the packing page on the persistent integration system, and obtains the packing page. The persistent integration server 110 obtains a packaging instruction from the packaging page, and the packaging instruction is filled by a packaging worker according to a packaging requirement. And then, according to the packaging instruction, obtaining the source code to be packaged from the source code storage server 120, or obtaining the source code to be packaged locally, packaging the source code according to the packaging instruction to generate an installation package, and finally uploading the installation package to the target server 130.
In one embodiment, as shown in fig. 2, there is further provided a server including a processor, a non-volatile storage medium, an internal memory, a network interface, connected by a system bus, the non-volatile storage medium having an operating system stored therein, and an automatic packaging apparatus for performing an automatic packaging method. The processor is used for improving the calculation and control capacity and supporting the operation of the whole server. The internal memory is used to provide an environment for the operation of the automatic packaging apparatus in the non-volatile storage medium, and the internal memory can store computer readable instructions, and when the computer readable instructions are executed by the processor, the processor can be used to execute an automatic packaging method. The network interface is used for network communication with the terminal, receiving or sending data, such as receiving a request from a browser, uploading an installation package to a target server and the like.
In one embodiment, as shown in fig. 3, an automatic packaging method is provided, which is described by taking the method as an example applied to the persistent integration server in fig. 1, and includes:
step 310, receiving a request sent by a browser for acquiring a package page integrated in the persistent integration system, so that the browser acquires the package page.
When a packaging person needs to package the source code, the terminal is connected with the continuous integration server through the browser. The continuous integration server is provided with a continuous integration system, and the packaging function is integrated in the continuous integration system. And the packaging personnel sends a request for acquiring the packaging page to the continuous integration server through the browser, and the continuous integration server receives the request and sends the document corresponding to the packaging page to the browser so that the browser acquires and displays the packaging page. The packaging page is integrated in the persistent integration system.
After the browser acquires and displays the packaging page, a packaging worker inputs a packaging instruction on the packaging page according to a packaging requirement. The packing instruction includes a packing requirement, specifically, version information of the source code to be packed, packed environment information, debugging parameter information, log information, and the like. And the continuous integration server acquires the packaging instruction which is input by the packaging personnel from the packaging page.
And 330, acquiring the source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package.
And the continuous integration server acquires the source code to be packaged according to the packaging instruction acquired from the packaging page. And automatically removing the modified parameters from the source code according to the version information of the source code to be packaged, the packaged environment information, the debugging parameter information, the log information and other information, and packaging the source code with the modified parameters to generate an installation package.
And the continuous integration server uploads an installation package generated by packaging the source code to a target server, namely the version management SVN server. An SVN (subversion) server is a free and open-source version control system, and most open-source software uses the SVN as code management software.
In this embodiment, the persistent integration server receives a request for acquiring a package page integrated in the persistent integration system, which is sent by a browser, so that the browser acquires the package page. The continuous integration server acquires a packaging instruction from the packaging page, acquires a source code to be packaged according to the packaging instruction, packages the source code according to the packaging instruction to generate an installation package, and uploads the installation package to a target server. And the packaging function is integrated into the continuous integration system, and the terminal can access the packaging page integrated in the continuous integration system through the browser so as to package. Therefore, the computer can be packaged only by a browser without installing a special packaging tool, and can be packaged in any network environment. And only need input the packing instruction according to the demand of packing on the packing page during packing, just can realize the packing to the source code, need not contact the source code, so do not need to be packed by the developer, can pack by other personnel to developer's time energy has been saved.
In one embodiment, as shown in fig. 4, the automatic packing method further includes:
and 350, acquiring a receiver mailbox address from the packaging page, transmitting a notification to the receiver mailbox address after the installation package is uploaded to the target server, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information stored on the target server by the installation package.
After the browser acquires and displays the packaging page, the packaging personnel can input the mailbox address of the receiver needing to be notified on the packaging page according to the packaging requirement. The persistent integration server acquires a receiver mailbox address input by a packing person from a packing page, and after uploading the installation package to the SVN server, sends a notification to the receiver mailbox address, wherein the notification comprises information (such as an APP version number, an installation package signature, a test signature, an interface environment, an confusion condition, a certificate verification condition, a Log switch, a statistical service, a JPUSH service and an SVN server address) of the installation package automatically generated according to a packing instruction and address information stored on a target server by the installation package. The notification may also include memo information that the packager manually entered on the package page. Specifically, the remark information may be additional attention information input by the packing staff in the packing environment, and may also be null or non-remark information.
In this embodiment, a function of automatically sending a mail is added to a packing function in the persistent integration system, and only the mailbox address of the recipient to be notified needs to be filled in the corresponding option on the packing page, so that the notification can be automatically sent to the mailbox address of the recipient after the installation package is uploaded to the target server after the packing is completed. The notification includes information that the automatically generated recipient can obtain the installation package and the basic attribute information of the installation package. Therefore, after the source codes are packaged and uploaded to the target server, a packaging worker is not required to manually open the mailbox to write the mail content and add the mailbox address of the receiver to send the mail. The method disclosed by the embodiment of the invention is more convenient and efficient, and greatly saves the time of packing personnel.
In one embodiment, obtaining the source code to be packed according to the packing instruction includes: judging whether a source code needing to be packaged exists locally or not according to the packaging instruction; if yes, acquiring a source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
In this embodiment, the packaging instruction input by the packaging personnel on the packaging page according to the packaging requirement includes version information of the source code to be packaged. Judging whether a corresponding source code library exists locally according to the version information of the source code to be packaged, and if so, acquiring the source code to be packaged locally. If not, the source code needing to be packaged is acquired from the source code storage server to download the source code. The source code repository server may be a GIT server, for example, a GitHub is a GIT server that hosts free source code.
In one embodiment, the packing instruction includes: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
After the browser acquires and displays the packaging page, a packaging worker inputs a packaging instruction on the packaging page according to a packaging requirement. The packaging instruction includes a packaging requirement, and specifically, the packaging requirement may be version information (for example, 3.0 or 4.0 version, etc.) of the source code to be packaged, packaging environment information (for example, test environment or production environment, etc.), debugging parameter information, log information (whether to open date), whether to encrypt, and the like. The source code generally has only default parameters, and each environment such as a test environment, a development environment, a release environment and the like corresponds to a different server address. Different environments also require different encryption and decryption modes, different installation package types and the like. Therefore, after the packing personnel selects a set of packing instructions, the continuous integration server acquires the packing instructions input by the packing personnel from the packing page, and automatically modifies the parameters in the source codes according to the packing instructions.
In this embodiment, the persistent integration server acquires the packaging instruction input by the packaging staff from the packaging page, automatically acquires the source code according to the version information of the source code to be packaged, and then automatically configures corresponding parameters in the source code according to information such as the operating environment of the software. Traditionally, parameters are modified in source code manually, because the professionalism needs to be modified by developers who can understand the source code. In the embodiment of the invention, the complex work of modifying the parameters in the source code is realized by using a program. The continuous integration system integrated on the continuous integration server can realize the modification of the parameters in the source code according to the packaging instruction. Therefore, when the source codes are packaged, only a packaging instruction is required to be input on a packaging page according to the packaging requirement, the source codes can be packaged without contacting the source codes, so that the source codes do not need to be packaged by developers, and the source codes can be packaged by other personnel, so that the time and energy of the developers are saved.
In an embodiment, as shown in fig. 5, acquiring a source code to be packaged according to a packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package, includes:
and 332, acquiring the source code to be packaged according to the version information of the source code to be packaged.
And obtaining the source code needing to be packaged according to the version information (such as 3.0 version, 4.0 version and the like) of the source code needing to be packaged. Judging whether a corresponding source code library exists locally according to the version information of the source code to be packaged, and if so, acquiring the source code to be packaged locally. If not, the source code needing to be packaged is acquired from the source code storage server to download the source code. For example, the source code repository server is a GIT server.
And 334, acquiring correspondingly configured debugging parameter information according to the packaged environment information.
The selected packing environment information in the packing instruction is selected to be a test environment, a development environment, an issuing environment or a production environment, for example, different environments correspond to different server addresses, and different environments also need different encryption and decryption modes, different installation package types and other requirements. Therefore, the correspondingly configured debugging parameter information is obtained according to the packed environment information.
And 336, modifying corresponding parameters in the source code according to the debugging parameter information.
And modifying parameters in the source code according to the acquired debugging parameter information. Therefore, the encryption and decryption mode, the installation package type, the server address and the like are matched with the selected environment information. And the installation package can be successfully installed after being downloaded by a user or a tester.
And 338, packaging the source code with the modified parameters to generate an installation package.
In this embodiment, during conventional packaging, which encryption and decryption manner, which installation package type, and which server address need to be matched for one operating environment, and how to modify parameters in source codes to package successfully is known by developers, so that only developers can pack the operating environment, and other people cannot pack the operating environment. In the embodiment of the invention, the complex work of configuring parameters and modifying the parameters in the source code is realized by using a program. The continuous integration system integrated on the continuous integration server can realize the modification of the parameters in the source code according to the packaging instruction. Therefore, when the source codes are packaged, only a packaging instruction is required to be input on a packaging page according to the packaging requirement, the source codes can be packaged without contacting the source codes, so that the source codes do not need to be packaged by developers, and the source codes can be packaged by other personnel, so that the time and energy of the developers are saved.
In one embodiment, as shown in fig. 6, there is also provided an automatic packing apparatus 600, comprising: a package page obtaining module 610, a package instruction obtaining module 620, an installation package generating module 630 and an uploading module 640.
A package page acquiring module 610, configured to receive a request sent by a browser to acquire a package page integrated in a persistent integration system, so that the browser acquires the package page;
a packing instruction obtaining module 620, configured to obtain a packing instruction from a packing page;
the installation package generating module 630 is configured to obtain a source code to be packaged according to the packaging instruction, and package the source code according to the packaging instruction to generate an installation package;
and an uploading module 640, configured to upload the installation package to the target server.
In one embodiment, as shown in fig. 7, an automatic packing apparatus 600 further comprises: and the notification sending module 650 is configured to obtain a recipient mailbox address from the package page, send a notification to the recipient mailbox address after uploading the installation package to the target server, where the notification includes information of the installation package automatically generated according to the package instruction and address information stored by the installation package on the target server.
In one embodiment, the installation package generating module 630 is configured to determine whether there is a source code that needs to be packaged locally according to the packaging instruction; if yes, acquiring a source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
In one embodiment, there is also provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a request for acquiring a packaging page integrated in a continuous integration system sent by a browser so that the browser acquires the packaging page; acquiring a packaging instruction from a packaging page; acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package; and uploading the installation package to a target server.
In one embodiment, the program further implements the following steps when executed by the processor: and acquiring a receiver mailbox address from the packaging page, and after uploading the installation package to a target server, sending a notification to the receiver mailbox address, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information stored on the target server by the installation package.
In one embodiment, the program further implements the following steps when executed by the processor: judging whether a source code needing to be packaged exists locally or not according to the packaging instruction; if yes, acquiring a source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
In one embodiment, the program further implements the following steps when executed by the processor: the packing instruction includes: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
In one embodiment, the program further implements the following steps when executed by the processor: acquiring the source code to be packaged according to the version information of the source code to be packaged; acquiring an environment correspondingly configured according to the packaged environment information; modifying corresponding parameters in the source code according to the debugging parameter information; and packaging the source code with the modified parameters to generate an installation package.
In one embodiment, there is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a request for acquiring a packaging page integrated in a continuous integration system sent by a browser so that the browser acquires the packaging page; acquiring a packaging instruction from a packaging page; acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package; and uploading the installation package to a target server.
In one embodiment, the processor further implements the following steps when executing the computer program: and acquiring a receiver mailbox address from the packaging page, and after uploading the installation package to a target server, sending a notification to the receiver mailbox address, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information stored on the target server by the installation package.
In one embodiment, the processor further implements the following steps when executing the computer program: judging whether a source code needing to be packaged exists locally or not according to the packaging instruction; if yes, acquiring a source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
In one embodiment, the processor further implements the following steps when executing the computer program: the packing instruction includes: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
In one embodiment, the processor further implements the following steps when executing the computer program: acquiring the source code to be packaged according to the version information of the source code to be packaged; acquiring an environment correspondingly configured according to the packaged environment information; modifying corresponding parameters in the source code according to the debugging parameter information; and packaging the source code with the modified parameters to generate an installation package.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. An automatic packaging method, the method comprising:
receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system, so that the browser acquires the packaging page;
acquiring a packaging instruction from the packaging page;
acquiring a source code to be packaged according to the packaging instruction, and packaging the source code according to the packaging instruction to generate an installation package;
uploading the installation package to a target server;
and acquiring a receiver mailbox address from the packaging page, and sending a notification to the receiver mailbox address after uploading the installation package to a target server, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information stored on the target server by the installation package.
2. The method of claim 1, wherein obtaining the source code to be packed according to the packing instruction comprises:
judging whether the source code needing to be packaged exists locally or not according to the packaging instruction;
if yes, acquiring the source code needing to be packaged from the local;
if not, the source code needing to be packaged is obtained from the source code storage server.
3. The method of claim 1, wherein the packing instruction comprises: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
4. The method of claim 3, wherein the obtaining the source code to be packaged according to the packaging instruction and packaging the source code according to the packaging instruction to generate the installation package comprises:
acquiring the source code to be packaged according to the version information of the source code to be packaged;
acquiring correspondingly configured debugging parameter information according to the packed environment information;
modifying corresponding parameters in the source code according to the debugging parameter information;
and packaging the source code with the modified parameters to generate an installation package.
5. An automatic packaging device, characterized in that the device comprises:
the packaging page acquisition module is used for receiving a request sent by a browser for acquiring a packaging page integrated in a continuous integration system so as to enable the browser to acquire the packaging page;
the packaging instruction acquisition module is used for acquiring a packaging instruction from the packaging page;
the installation package generating module is used for acquiring a source code to be packaged according to the packaging instruction and packaging the source code according to the packaging instruction to generate an installation package;
the uploading module is used for uploading the installation package to a target server;
and the notification sending module is used for acquiring a receiver mailbox address from the packaging page and sending a notification to the receiver mailbox address after the installation package is uploaded to a target server, wherein the notification comprises the information of the installation package automatically generated according to the packaging instruction and the address information of the installation package stored on the target server.
6. The apparatus according to claim 5, wherein the installation package generating module is further configured to determine whether the source code to be packaged exists locally according to the packaging instruction; if yes, acquiring the source code needing to be packaged from the local; if not, the source code needing to be packaged is obtained from the source code storage server.
7. The apparatus of claim 5, wherein the packing instruction comprises: version information of the source code to be packaged, packaged environment information, and debugging parameter information.
8. The apparatus of claim 7, wherein the installation package generating module is further configured to obtain the source code to be packaged according to version information of the source code to be packaged; acquiring correspondingly configured debugging parameter information according to the packed environment information; modifying corresponding parameters in the source code according to the debugging parameter information; and packaging the source code with the modified parameters to generate an installation package.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the automatic packaging method according to any one of claims 1 to 4.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the automatic packaging method of any of claims 1 to 4 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710495287.3A CN107450941B (en) | 2017-06-26 | 2017-06-26 | Automatic packaging method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710495287.3A CN107450941B (en) | 2017-06-26 | 2017-06-26 | Automatic packaging method, device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107450941A CN107450941A (en) | 2017-12-08 |
CN107450941B true CN107450941B (en) | 2020-08-18 |
Family
ID=60486692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710495287.3A Expired - Fee Related CN107450941B (en) | 2017-06-26 | 2017-06-26 | Automatic packaging method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450941B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960526A (en) * | 2017-12-22 | 2019-07-02 | 航天信息股份有限公司 | A kind of application program packaging method and device |
CN108196878B (en) * | 2018-01-22 | 2020-12-18 | 广东小天才科技有限公司 | Method and device for generating application program installation package, electronic equipment and storage medium |
CN108520482A (en) * | 2018-04-04 | 2018-09-11 | 重庆猪八戒知识产权服务有限公司 | A kind of automatic declaration method of trade mark declares terminal and storage medium |
CN108664267A (en) * | 2018-04-09 | 2018-10-16 | 上海瀚银信息技术有限公司 | A kind of code automatic packaging system |
CN108897571B (en) * | 2018-06-29 | 2022-07-05 | 北京金山数字娱乐科技有限公司 | Program packaging deployment method, device, system, electronic equipment and storage medium |
CN110147227B (en) * | 2018-07-06 | 2023-07-18 | 杭州涂鸦信息技术有限公司 | Program installation package generation method and system for skill configuration |
CN109062789B (en) * | 2018-07-17 | 2022-04-15 | 广州视源电子科技股份有限公司 | Continuous integration method, device and equipment and readable storage medium |
CN109101244B (en) * | 2018-07-20 | 2022-06-03 | 珠海宏桥高科技有限公司 | Integrated automatic packaging method for ios system |
CN111026407B (en) * | 2018-10-10 | 2021-12-03 | 北大方正集团有限公司 | Installation package packing method, computer device and computer readable storage medium |
CN109375929A (en) * | 2018-11-22 | 2019-02-22 | 东软集团股份有限公司 | Installation kit generation method, device, storage medium and the equipment of Java web application |
CN111078232B (en) * | 2019-12-03 | 2022-09-16 | 江苏满运软件科技有限公司 | Application program packaging method, device, equipment and medium |
CN111142859A (en) * | 2019-12-31 | 2020-05-12 | 五八有限公司 | Script generation method and device, electronic equipment and storage medium |
CN111767075A (en) * | 2020-06-23 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | Method and device for synchronizing application program versions |
CN113094121B (en) * | 2021-04-30 | 2023-03-10 | 腾讯科技(成都)有限公司 | Data processing method, data processing equipment and computer readable storage medium |
CN114610327B (en) * | 2022-02-15 | 2023-02-17 | 北京结慧科技有限公司 | Automatic publishing and deploying method, device, medium and computer equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445548A (en) * | 2016-10-11 | 2017-02-22 | 武汉斗鱼网络科技有限公司 | Test pack issuing method and device |
CN106528200A (en) * | 2016-10-08 | 2017-03-22 | 广州视睿电子科技有限公司 | Continuous integration method and device based on docker composition |
CN106547688A (en) * | 2016-10-19 | 2017-03-29 | 厦门市美亚柏科信息股份有限公司 | Product automation method of testing and its system based on Windows |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9405521B2 (en) * | 2006-06-29 | 2016-08-02 | Microsoft Technology Licensing, Llc | Mapping of virtualized setup-free applications for a computing system |
CN106775912A (en) * | 2016-12-15 | 2017-05-31 | 广州视源电子科技股份有限公司 | Software release method and system |
-
2017
- 2017-06-26 CN CN201710495287.3A patent/CN107450941B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528200A (en) * | 2016-10-08 | 2017-03-22 | 广州视睿电子科技有限公司 | Continuous integration method and device based on docker composition |
CN106445548A (en) * | 2016-10-11 | 2017-02-22 | 武汉斗鱼网络科技有限公司 | Test pack issuing method and device |
CN106547688A (en) * | 2016-10-19 | 2017-03-29 | 厦门市美亚柏科信息股份有限公司 | Product automation method of testing and its system based on Windows |
Non-Patent Citations (1)
Title |
---|
jenkins自动化打包说明;rtydfgh;《https://www.docin.com/p-1451135171.html》;20160207;第1-14页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107450941A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107450941B (en) | Automatic packaging method, device, storage medium and computer equipment | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
US9898395B2 (en) | Unit-level formal verification for vehicular software systems | |
KR102341154B1 (en) | High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices | |
JP6870203B2 (en) | Field device commissioning system and method | |
CN107896244B (en) | Version file distribution method, client and server | |
US11113050B2 (en) | Application architecture generation | |
US8660833B2 (en) | Method, computer program product and apparatus for providing an interactive network simulator | |
CN108920359B (en) | Application program testing method and device, storage medium and electronic device | |
JP2013545172A (en) | Device and method for providing a software program adapted to a computer system downloaded by a user | |
CN108229112A (en) | A kind of operation method and device for protecting application program, application program | |
US10824541B1 (en) | System and method for test data fabrication | |
CN107370804B (en) | Software application processing method and device | |
US9753834B1 (en) | Certification process for cloud platform | |
CN104331662A (en) | Method and device for detecting Android malicious application | |
CN109284106A (en) | Method for release management, electronic device and the readable storage medium storing program for executing of business rule | |
CN104036194B (en) | Vulnerability detection method and device for revealing private data in application program | |
CN103152327A (en) | Configuration method, client and system for plug-in unit compressing and uncompressing | |
CN107239309A (en) | Patch generation method and device, update method, electronic equipment, storage medium | |
EP3447635A1 (en) | Application architecture generation | |
CN106095415A (en) | Exploitation file packing method, Apparatus and system | |
US9571557B2 (en) | Script caching method and information processing device utilizing the same | |
KR20240047468A (en) | ECU upgrade method and device, and readable storage medium | |
CN104036193A (en) | Local cross-domain vulnerability detection method and device for application program | |
EP3336705A1 (en) | Certification process for cloud platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200818 Termination date: 20210626 |
|
CF01 | Termination of patent right due to non-payment of annual fee |