CN108037949A - Installation kit packaging method, device, computer equipment and storage medium by all kinds of means - Google Patents
Installation kit packaging method, device, computer equipment and storage medium by all kinds of means Download PDFInfo
- Publication number
- CN108037949A CN108037949A CN201711429980.7A CN201711429980A CN108037949A CN 108037949 A CN108037949 A CN 108037949A CN 201711429980 A CN201711429980 A CN 201711429980A CN 108037949 A CN108037949 A CN 108037949A
- Authority
- CN
- China
- Prior art keywords
- installation kit
- kinds
- control system
- jenkins
- target
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of installation kit packaging method, device, computer equipment and storage medium by all kinds of means, the described method includes:Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, the target installation kit is the initial installation kit for needing to pack by all kinds of means in the version control system;The packing task by all kinds of means of the target installation kit is established by Jenkins, and is wrapped by all kinds of means according to the task generation of the packing by all kinds of means target installation kit is corresponding.The embodiment of the present invention solves the uniqueness of correspondence between the channel bag and installation kit that can not ensure generation in installation kit by all kinds of means packing process, the bag by all kinds of means for causing generation is not the uniqueness between each installation kit in realizing installation kit and wrapping by all kinds of means the problem of channel packing generation is carried out to same installation kit.
Description
Technical field
The present embodiments relate to bag generation technique field by all kinds of means, more particularly to a kind of installation kit side of packing by all kinds of means
Method, device, computer equipment and storage medium.
Background technology
Android installation kit (Android package, APK) is a kind of application program installation file of Android operation system,
Need to be packaged into APK after the completion of Android project developments, and download to terminal device operation.When developing Android projects,
Due to the opening in Android markets, the distribution platform in Android markets is more, and each distribution platform has been issued accordingly
APK, i.e., have identical APK in each channel.The user volume of application is run in each channel when software developer needs to count
It when data, can by all kinds of means be packed to APK, each APK is carried channel information, then will when APK installation and operations
The data sending such as channel information and the user volume of collection is to software developer.
In the prior art, it is manually to be placed on APK under specified directory that common APK, which carries out channel packing manner, then will
Channel value writes on the comment field of APK, and corresponding channel bag is generated by one key of relevant order.But due to being beaten in progress APK
Need to be put into APK behind the relevant position of strapping tool to control by order line again using manual type during bag to carry out APK packings,
Can not ensure generation channel bag and APK between correspondence uniqueness, i.e., can not ensure channel bag packing before APK with
Whether be same APK between each APK in the channel bag of generation, cause generation multiple support channels bag in each APK simultaneously
It is not same APK.
The content of the invention
The embodiment of the present invention provides a kind of installation kit packaging method, device, computer equipment and storage medium by all kinds of means, with
Realize the uniqueness between each installation kit in installation kit and the bag by all kinds of means of generation.
In a first aspect, an embodiment of the present invention provides a kind of installation kit, packaging method, this method include by all kinds of means:
Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, the target peace
Dress bag is the initial installation kit for needing to pack by all kinds of means in the version control system;
The packing task by all kinds of means of the target installation kit is established by Jenkins, and is appointed according to the packing by all kinds of means
The business generation target installation kit is corresponding to be wrapped by all kinds of means.
Second aspect, the embodiment of the present invention additionally provide a kind of installation kit packing apparatus by all kinds of means, which includes:
Installation kit acquisition module, pacifies for obtaining target from version control system by continuous integrating instrument Jenkins
Dress bag;Wherein, the target installation kit is the initial installation kit for needing to pack by all kinds of means in the version control system;
Packetization module by all kinds of means, for establishing the packing task by all kinds of means of the target installation kit, and root by Jenkins
Wrapped by all kinds of means according to the task generation of the packing by all kinds of means target installation kit is corresponding.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, which includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing
Device realizes installation kit as described above packaging method by all kinds of means.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer
Program, the program realize installation kit as described above packaging method by all kinds of means when being executed by processor.
An embodiment of the present invention provides a kind of installation kit packaging method, device, computer equipment and storage medium by all kinds of means,
Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, target installation kit is version control
The initial installation kit packed by all kinds of means is needed in system processed;The packing task by all kinds of means of target installation kit is established by Jenkins,
And target installation kit is corresponding wraps by all kinds of means for task generation according to packing by all kinds of means.The embodiment of the present invention solves more in installation kit
Can not ensure in channel packing process generation channel bag and installation kit between correspondence uniqueness, cause generation more canals
Road bag is not that the problem of channel packing generates is carried out to same installation kit, each in realizing installation kit and wrapping by all kinds of means
Uniqueness between installation kit.
Brief description of the drawings
Fig. 1 is the flow diagram of installation kit in the embodiment of the present invention one packaging method by all kinds of means;
Fig. 2 is the flow diagram of installation kit in the embodiment of the present invention two packaging method by all kinds of means;
Fig. 3 A are the continuous integrating instrument Jenkins interface schematic diagrams in the embodiment of the present invention two;
Fig. 3 B are continuous integrating instrument Jenkins another interface schematic diagrams in the embodiment of the present invention two;
Fig. 4 is the flow diagram of installation kit in the embodiment of the present invention three packaging method by all kinds of means;
Fig. 5 is the structure diagram of installation kit in the embodiment of the present invention four packing apparatus by all kinds of means;
Fig. 6 is a kind of structure diagram of computer equipment in the embodiment of the present invention five.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
It illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
Embodiment one
Fig. 1 is the flow diagram of installation kit in the embodiment of the present invention one packaging method by all kinds of means, the peace of the present embodiment
Packaging method is applicable to user in situation about being packed by all kinds of means to application installation package to dress bag by all kinds of means.The peace of the present embodiment
Specifically by installation kit, packing apparatus performs packaging method dress bag by all kinds of means by all kinds of means, which can use software and/or hard
The mode of part is realized.As shown in Figure 1, packaging method can include the installation kit by all kinds of means:
Step 101, by continuous integrating instrument Jenkins obtain target installation kit from version control system;Wherein, mesh
Mark installation kit is the initial installation kit for needing to pack by all kinds of means in version control system.
In the present embodiment, Jenkins is an open source software project, can provide the easy-to-use software of opening and put down
Platform, makes software accomplish that the work that monitoring continues to repeat can be can be used for continuous integrating.Version control system is a kind of record one
A or multiple file content changes, to consult the system of a certain FileVersion recension in the future.Version control system is not only
The text of software source code is can be applied to, and Version Control can be carried out to any kind of file.Version Control
The type of system can be divided into local version control system, centralization version control system and distributed version control system.Its
In, centralization version control system is referred to as CVCS, this kind of version control system include such as CVS, Subversion and
Perforce etc.;Distributed version control system abbreviation DVCS, this kind of version control system include such as Git,
Mercurial, Bazaar and Darcs etc..Management is controlled to target installation kit for convenience, in the present embodiment version
Control system can use distributed version control system.It is for instance possible to use Git distributed versions control system pacifies target
Dress bag is managed collectively.
In the present embodiment, various types of initial installation kits can be uploaded in version control system, and pass through version
The distinctive management function of control system is managed collectively all types of initial installation kits.Version control system can be to version
The revision of all types of initial installation kits and all types of initial installation kits is stored in control system, so that user can
To obtain the latest edition of all types of initial installation kits by version control system.The distinctive management function of version control system can
With directory information when preserving, historical record and the modification details being embodied in initial installation kit in version control system
Management.Wherein, initial installation kit can be the source installation kit developed by developer, which, which does not include, appoints
What channel information.Initial installation kit can be divided into polytype, system software installation kit, the audio-visual software developed such as developer
The software installation bag such as installation kit and Games Software installation kit.Initial installation kit can be the APK forms that android system is applicable in
Software installation bag, or the software installation bag of other forms, the present embodiment do not limit this.
In the present embodiment, version control system can carry out unified pipe to the various initial installation kits preserved in system
Reason, when needing to pack to some initial installation in version control system by all kinds of means, the needs are beaten by all kinds of means at this time
The initial installation kit of bag can serve as the target installation kit of the present embodiment.
On the basis of above-described embodiment, optionally, by continuous integrating instrument Jenkins from version control system
Before obtaining target installation kit, packaging method can include the installation kit by all kinds of means:
The initial installation kit that developer generates is committed in version control system according to pre-set rule;Pass through
Version control system is managed collectively the attribute information of initial installation kit and initial installation kit, and attribute information includes initial peace
Dress bag is in the directory information of version control system, historical record and modification details.
Generally, developer is usually allocated to the different task of multiple developers, allows when developing a project
The exploitation of multiple common finished items of developer, the function module that different developers' completions each distribute at this time, again finally
The function module that each developer is completed gathers together what the initial installation kit of generation was completed jointly as developer
Initial installation kit.
Specifically, developer is developed after the initial installation kit of completion, can will initially be pacified according to pre-set rule
Dress bag submission is uploaded to version control system, is initially installed by version control system to being uploaded to each of version control system
Bag is managed collectively.Pre-set rule can be user when using version control system, in version control system
The backup path of the file of the initial installation kit of backup created under specified directory.This document folder is used for initial installation kit in version
Made a backup store under the specified directory of this control system.Exemplary, the backup created under version control system specified directory
The backup path of file is specifically as follows:..\back\{app_version_code}\{version_sequence}\
base.apk;Wherein, app_version_code represents the version number of initial installation kit under current backup file, such as version
Number can be " 4.5.0 ";Version_sequence represents that the initial installation kit is in current version number under current backup file
Under version order, such as the first edition can " 01 ", the second edition can be " 02 ";Base.apk is represented under current backup file
Initial installation kit.
Specifically, the attribute information of initial installation kit can be preserved including initial installation kit in version control system
Directory information, the historical record of each initial installation kit and the modification details etc. of everywhere historical record.Wherein, initial peace
Fill the text for the initial installation kit of backup that the directory information of bag and initial installation kit create under the specified directory of version control system
The backup path of part folder is consistent.The backup that i.e. initial installation kit creates under the specified directory of version control system is initially pacified
The directory information that the backup path of the file of bag is filled when can be preserved with initial installation kit in version control system is protected
Hold consistent.The historical record of initial installation kit can be developer or technical staff to initially being installed in version control system
Bag be modified, replace, channel packing and carry out other operation history information.For example, A technical staff is in xxx
The history information that year is modified xxx initial installation kits xxx months xxx day.Initially the modification details of installation kit can be
The modification details of developer or technical staff to some historical record in the historical record of initial installation kit.For example, work as A
Technical staff in xxx xxx months xxx day to xxx initial installation kits when being modified, can be in the historical record of modification
The detailed content modified is shown, for example is which modification has been carried out to the content of the initial installation kit.
Step 102, the packing task by all kinds of means for establishing by Jenkins target installation kit, and appointed according to packing by all kinds of means
Target installation kit is corresponding wraps by all kinds of means for business generation.
Under normal circumstances, channel bag refers to some meta- in the inventory file of the installation kit of major application market issue
Under data labels, the packaging file that a channel value is formed is configured.Since the effect of this kind of label is exactly to be used for distinguishing installation kit
It is to be downloaded from which application market.For example, when needing some installation kit being published to 360 application market, this channel
Value can be configured to 360, be issued in other application market, and channel value just configures the channel information of phase application market.By all kinds of means
Packing refers to the engineering that some installation kit is generated to the installation package file of multiple support channels, like this when installation kit is answered each
When being issued with market, it can facilitate and statistical analysis is carried out to installation kit.
In the present embodiment, after target installation kit is obtained from version control system by Jenkins, can pass through
Integration tool Jenkins builds task of packing by all kinds of means for the target installation kit obtained from version control system.Then
Target installation kit is generated by all kinds of means by channel bag strapping tool according to the task of packing by all kinds of means of the target installation kit of foundation
Bag.Wherein, channel bag strapping tool can use U.S. group's strapping tool, according to task of packing by all kinds of means by group of U.S. instrument by canal
The comment field of road value write-in target installation kit, by repeatedly target installation kit can be generated to target installation kit write-in channel value
Multiple support channels bag.
An embodiment of the present invention provides a kind of installation kit packaging method by all kinds of means, by Jenkins from version control system
Middle acquisition target installation kit, and establish by Jenkins the packing task by all kinds of means of target installation kit, and according to packing by all kinds of means
Target installation kit is corresponding wraps by all kinds of means for task generation.The embodiment of the present invention solves the nothing in installation kit by all kinds of means packing process
The uniqueness of correspondence between the channel bag and installation kit of method guarantee generation, the bag by all kinds of means for causing generation is not to same
A installation kit carries out the problem of channel packing generation, ensure that when to installation kit pack by all kinds of means to same installation kit
Packed by all kinds of means, the uniqueness between each installation kit in realizing installation kit and wrapping by all kinds of means.
Embodiment two
Fig. 2 is the flow diagram of installation kit in the embodiment of the present invention two packaging method by all kinds of means, the embodiment of the present invention
Optimized on the basis of above-described embodiment one.As shown in Fig. 2, packaging method can include the installation kit by all kinds of means:
Step 201, according to the directory information of target installation kit configure target installation kit in continuous integrating instrument Jenkins
Path parameter, directory information includes target installation kit version number and version order in version control system.
In the present embodiment, when each initial installation kit is managed collectively in version control system, initial installation kit
The backup path of the file of the initial installation kit of backup created under the specified directory of version control system can be with initial peace
Directory information when dress bag is preserved in version control system is consistent.At this time, the catalogue letter of each initial installation kit
Breath can include each initial version number and version order of the installation kit in version control system, specific example reference implementation example one
Explanation.Can be by the need when needing that some initial installation kit in version control system pack by all kinds of means
The initial installation kit to pack by all kinds of means is as target installation kit.Exemplary, the target installation kit configured in Jenkins
Specific path is $ { WORKSPACE }/back/ $ fenqileVerison/ $ fenqilePushNumber/base.apk.Wherein,
$ { WORKSPACE } is the root of the task of current Jenkins, and $ fenqileVerison are the target in Jenkins configurations
The version number of installation kit, $ fenqilePushNumber are the target installation kit in Jenkins configurations under current version number
Which edition installation kit.
In the present embodiment, Fig. 3 A are the continuous integrating instrument Jenkins interface schematic diagrams in the embodiment of the present invention two, figure
3B is continuous integrating instrument Jenkins another interface schematic diagram in the embodiment of the present invention two.Referring to Fig. 3 A and 3B, use
The path parameter of target installation kit is configured in Jenkins to be advantageous in that:Jenkins has a visual interface, exploitation
Personnel can configure target installation kit in version according to the directory information of target installation kit on the visualization interface of Jenkins
Version number and version order belonging in control system, and the version number and version order are pulled as from version control system
The path parameter of corresponding target installation kit.Optionally, in Jenkins configuration need obtain target installation report version number and
Version order when directory information, can at the visual interface of Jenkins using the form of drop-down list from list option
The directory information of the middle target installation kit for selecting to need to configure.For example, it is desired to the directory information of the target installation kit of configuration includes
Title, version number and version order of target installation kit etc., are not limited to the information such as version number and version order here, can also
Different installation kits is distinguished using other distinctive label informations.Exemplary, referring to Fig. 3 A, Name columns carry for version number
Show column, content is fenqileVerison in column, and expression needs to configure target installation kit version number;In Choices columns
The needs of selection are in the version number 4.5.0 of the Jenkins target installation kits configured, and the above is in Descriptionyy columns
Description bar.Referring to Fig. 3 B, Name columns are version order prompt column, and content is fenqilePushNumber in column, represent to need pair
The corresponding version order of target installation kit current version number is configured;The needs selected in Choices columns are configured in Jenkins
Target installation kit the corresponding version order 01 of current version number, Descriptionyy columns be the above description bar.
On the basis of above-described embodiment, optionally, by continuous integrating instrument Jenkins from version control system
Before obtaining target installation kit, packaging method can include the installation kit by all kinds of means:
The initial installation kit that developer generates is committed in version control system according to pre-set rule;Pass through
Version control system is managed collectively the attribute information of initial installation kit and initial installation kit, and attribute information includes initial peace
Dress bag is in the directory information of version control system, historical record and modification details.
Step 202, according to path parameter obtain target installation kit by Jenkins from version control system, target peace
Dress bag is the initial installation kit for needing to pack by all kinds of means in version control system.
In the present embodiment, path parameter can be established between Jenkins and version control system pass through Jenkins
The path relation of target installation kit is obtained from version control system.Configuration is completed to need from Version Control system in Jenkins
The version number of the target installation kit obtained in system and version order, it is possible to according to path parameter from version control system directly
Pull.After version number and the version order for completing the target installation kit that needs obtain is configured in Jenkins, Jenkins
Perform the corresponding function that obtains and target installation kit is directly acquired from version control system.For example, path parameter can be
... back 4.5.0 01 base.apk, wherein, " back " represent installation kit backup file, " 4.5.0 " represent target install
The version number of bag, " 01 " represent the version order of target installation kit, and " base.apk " represents target installation kit.
Step 203, the packing task by all kinds of means for establishing by Jenkins target installation kit, and appointed according to packing by all kinds of means
Target installation kit is corresponding wraps by all kinds of means for business generation.
In the present embodiment, after target installation kit is obtained from version control system by Jenkins, can pass through
The task constructing function of Jenkins establishes the task that a target installation kit is packed by all kinds of means.Optionally, can use
Execute Shell in Jenkins, the packing task by all kinds of means of target installation kit is established by the form of order line.Then
Task of packing by all kinds of means is performed by strapping tool according to the task of packing by all kinds of means of target installation kit and generates target installation kit pair
The multiple support channels bag answered.Specifically, by strapping tool can multiple and different channel informations be respectively written into it is multiple identical
In target installation kit, such as the comment field by channel value write-in target installation kit, it can thus generate the more of target installation kit
A channel bag, subsequently can issue multiple support channels bag in different platform respectively.Alternatively, it is also possible to by strapping tool by one
A channel bag is generated in a channel value write-in target installation kit, another channel value is then write into an identical target again
Another channel bag is generated in installation kit, the multiple support channels bag of target installation kit can also be generated by repeatedly circulation.Optionally,
It can be wrapped by all kinds of means by the strapping tool generation of group of U.S. according to the task of packing by all kinds of means of target installation kit.
An embodiment of the present invention provides a kind of installation kit packaging method by all kinds of means, existed according to the directory information of target installation kit
In Jenkins configure target installation kit path parameter, then according to path parameter by Jenkins from version control system
Target installation kit is obtained, then the packing task by all kinds of means of target installation kit is established by Jenkins, and is appointed according to packing by all kinds of means
Target installation kit is corresponding wraps by all kinds of means for business generation.The embodiment of the present invention is solved can not in installation kit by all kinds of means packing process
The uniqueness of correspondence between the channel bag and installation kit of guarantee generation, the bag by all kinds of means for causing generation is not to same
Installation kit carry out channel packing generation the problem of, ensure that to installation kit carry out by all kinds of means pack when to same installation kit into
Row is packed by all kinds of means, the uniqueness between each installation kit in realizing installation kit and wrapping by all kinds of means.
Embodiment three
Fig. 4 is the flow diagram of installation kit in the embodiment of the present invention three packaging method by all kinds of means, the embodiment of the present invention
Optimized on the basis of above-described embodiment one and embodiment two.As shown in figure 4, packaging method can be with by all kinds of means for the installation kit
Including:
Step 301, by continuous integrating instrument Jenkins obtain target installation kit from version control system;Wherein, mesh
Mark installation kit is the initial installation kit for needing to pack by all kinds of means in version control system.
In the present embodiment, optionally, target installation kit is obtained from version control system by Jenkins, including:Root
The path parameter of target installation kit is configured in Jenkins according to the directory information of target installation kit, directory information is pacified including target
Version number and version order of the dress bag in version control system;According to path parameter by Jenkins from version control system
Middle acquisition target installation kit, target installation kit are the initial installation kit for needing to pack by all kinds of means in version control system.
Step 302, set the corresponding output directory wrapped by all kinds of means of target installation kit by Jenkins.
The packing by all kinds of means that the output directory that step 303, basis are wrapped by all kinds of means establishes target installation kit by Jenkins is appointed
Business.
In the present embodiment, after target installation kit is obtained from version control system by Jenkins, can also lead to
Cross the corresponding output directory wrapped by all kinds of means of target installation kit that Jenkins sets generation.Optionally, can be Jenkins's
Set that wraps by all kinds of means to save contents on visualization interface, save contents so as to which the bag by all kinds of means of generation to be stored in pre-set
File, easily find user and wrap by all kinds of means.Certainly, set on the visualization interface of Jenkins and wrap by all kinds of means
When saving contents, pre-set save contents can be found from list using drop-down list form;It can also use down
Tabular form new folder in lists is drawn, is wrapped by all kinds of means to preserve.
Exemplary, the output directory that can set target installation kit is $ { WORKSPACE }/channels/, wherein, $
{ WORKSPACE } is the root of the task of current Jenkins, and $ channels are represented to wrap by all kinds of means, generated at this time by all kinds of means
Bag can be stored in the file under the output directory.
Step 304, according to packing by all kinds of means, target installation kit is corresponding wraps by all kinds of means for task generation.
On the basis of above-described embodiment, optionally, target installation is being obtained from version control system by Jenkins
Before bag, packaging method can include the installation kit by all kinds of means:
The initial installation kit that developer generates is committed in version control system according to pre-set rule;Pass through
Version control system is managed collectively the attribute information of initial installation kit and initial installation kit, and attribute information includes initial peace
Dress bag is in the directory information of version control system, historical record and modification details.
On the basis of above-described embodiment, optionally, continuous integrating instrument is being passed through according to the output directory wrapped by all kinds of means
Jenkins is established after the task of packing by all kinds of means of target installation kit, is further included:
The corresponding bag by all kinds of means of target installation kit is stored into the file belonging to the output directory wrapped by all kinds of means;By answering
It will by all kinds of means be wrapped with routine interface API and be pushed to designated person.
In the present embodiment, more canals of target installation kit are being established by Jenkins according to the output directory wrapped by all kinds of means
After road packing task, directly the corresponding bag by all kinds of means of target installation kit can be stored to belonging to the output directory wrapped by all kinds of means
File in., can be by the mesh under Jenkins specified directories when specific technology personnel or developer need to wrap by all kinds of means
The corresponding link wrapped by all kinds of means of mark installation kit gives specified related personnel by application programming interfaces API, and related personnel can be straight
Download is connect to use.
An embodiment of the present invention provides a kind of installation kit packaging method by all kinds of means, by Jenkins from version control system
Middle acquisition target installation kit, then the corresponding output directory wrapped by all kinds of means of target installation kit is set by Jenkins, according to more canals
The output directory of road bag establishes the packing task by all kinds of means of target installation kit by Jenkins.The embodiment of the present invention solves
Installation kit can not ensure the uniqueness of correspondence between the channel bag and installation kit of generation in packing process by all kinds of means, cause to give birth to
Into bag by all kinds of means be not to same installation kit carry out channel packing generation the problem of, ensure that to installation kit carry out it is more
Channel pack when packed by all kinds of means to same installation kit, realize installation kit with by all kinds of means bag in each installation kit it
Between uniqueness.
Example IV
Fig. 5 is the structure diagram of installation kit in the embodiment of the present invention four packing apparatus by all kinds of means, the peace of the present embodiment
Packing apparatus is applicable to user and can be adopted in situation about being packed by all kinds of means to application installation package, the device dress bag by all kinds of means
Realized with the mode of software and/or hardware.As shown in figure 5, packing apparatus can include the installation kit by all kinds of means:Installation kit obtains
Modulus block 401 and by all kinds of means packetization module 402;Wherein,
Installation kit acquisition module 401, for obtaining target from version control system by continuous integrating instrument Jenkins
Installation kit;Wherein, the target installation kit is the initial installation kit for needing to pack by all kinds of means in the version control system;
Packetization module 402 by all kinds of means, for establishing the packing task by all kinds of means of the target installation kit by Jenkins,
And wrapped by all kinds of means according to the task generation of the packing by all kinds of means target installation kit is corresponding.
On the basis of above-described embodiment, optionally, packing apparatus can also include the installation kit by all kinds of means:
Installation kit submits enclosed mass 403, and the initial installation kit for developer to be generated is carried according to pre-set rule
Hand over into the version control system;
Installation kit management module 404, for by the version control system to the initial installation kit and described initial
The attribute information of installation kit is managed collectively;Wherein, the attribute information includes the initial installation kit in the version control
Directory information, historical record and the modification details of system processed.
On the basis of above-described embodiment, optionally, the installation kit acquisition module 401 can include:
Dispensing unit, for configuring the target in the Jenkins according to the directory information of the target installation kit
The path parameter of installation kit;Wherein, the directory information includes the target installation kit version in the version control system
This number and version order;
Acquiring unit, for being obtained according to the path parameter by the Jenkins from the version control system
The target installation kit;Wherein, the target installation kit is the initial peace for needing to pack by all kinds of means in the version control system
Dress bag.
On the basis of above-described embodiment, optionally, the packetization module by all kinds of means 402 can include:
Output directory setting unit, for setting the target installation kit is corresponding to wrap by all kinds of means by the Jenkins
Output directory;
Packing task construction unit, the output directory for being wrapped by all kinds of means according to establish the mesh by Jenkins
Mark the packing task by all kinds of means of installation kit.
On the basis of above-described embodiment, optionally, packing apparatus further includes the installation kit by all kinds of means:
Bag memory module 405 by all kinds of means, for storing the corresponding bag by all kinds of means of the target installation kit to more canals
In file belonging to the output directory of road bag;
Bag pushing module 406 by all kinds of means, for the bag by all kinds of means to be pushed to nominator by application programming interfaces API
Member.
Packing apparatus can perform the invention described above any embodiment institute to the installation kit that the embodiment of the present invention is provided by all kinds of means
The installation kit of offer packaging method by all kinds of means, possesses and performs the installation kit corresponding function module of packaging method and beneficial by all kinds of means
Effect.
Embodiment five
Fig. 6 is a kind of structure diagram for computer equipment that the embodiment of the present invention five provides.Fig. 6 is shown suitable for being used for
Realize the block diagram of the exemplary computer device 512 of embodiment of the present invention.The computer equipment 512 that Fig. 6 is shown is only one
A example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, computer equipment 512 is showed in the form of universal computing device.The component of computer equipment 512 can
To include but not limited to:One or more processor 516, system storage 528, connection different system component (including system
Memory 528 and processor 516) bus 518.
Bus 518 represents the one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and periphery component interconnection (PCI) bus.
Computer equipment 512 typically comprises various computing systems computer-readable recording medium.These media can be it is any can
The usable medium accessed by computer equipment 512, including volatile and non-volatile medium, moveable and immovable Jie
Matter.
System storage 528 can include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 530 and/or cache memory 532.Computer equipment 512 may further include it is other it is removable/
Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 534 can be used for reading
Write immovable, non-volatile magnetic media (Fig. 6 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 6,
It can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-easy
The CD drive of the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each
Driver can be connected by one or more data media interfaces with bus 518.Memory 528 can include at least one
Program product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this
Invent the function of each embodiment.
Program/utility 540 with one group of (at least one) program module 542, can be stored in such as memory
In 528, such program module 542 includes but not limited to operating system, one or more application program, other program modules
And routine data, the realization of network environment may be included in each or certain combination in these examples.Program module 542
Usually perform the function and/or method in embodiment described in the invention.
Computer equipment 512 can also be with one or more external equipments 514 (such as keyboard, sensing equipment, display
524 etc.) communicate, can also enable a user to the equipment communication interacted with computer equipment 512 with one or more, and/or with
Enable any equipment that the computer equipment 512 communicates with one or more of the other computing device (such as network interface card, modulation
Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 522.Also, computer equipment 512
Network adapter 520 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public affairs can also be passed through
Common network network, such as internet) communication.As shown in the figure, network adapter 520 passes through the other of bus 518 and computer equipment 512
Module communicates.It should be understood that although not shown in Fig. 6, computer equipment 512 can be combined and use other hardware and/or software
Module, includes but not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic
Tape drive and data backup storage system etc..
Processor 516 is stored in program in system storage 528 by operation, thus perform various functions application and
Data processing, such as realize installation kit that the embodiment of the present invention is provided packaging method by all kinds of means, including:
Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, the target peace
Dress bag is the initial installation kit for needing to pack by all kinds of means in the version control system;
The packing task by all kinds of means of the target installation kit is established by Jenkins, and is appointed according to the packing by all kinds of means
The business generation target installation kit is corresponding to be wrapped by all kinds of means.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, should
Such as installation kit that is provided of embodiment of the present invention packaging method by all kinds of means is provided when program is executed by processor, including:
Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, the target peace
Dress bag is the initial installation kit for needing to pack by all kinds of means in the version control system;
The packing task by all kinds of means of the target installation kit is established by Jenkins, and is appointed according to the packing by all kinds of means
The business generation target installation kit is corresponding to be wrapped by all kinds of means.
The computer-readable storage medium of the embodiment of the present invention, can use any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool
There are the electrical connections of one or more conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any includes or the tangible medium of storage program, the program can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium beyond storage medium is read, which, which can send, propagates or transmit, is used for
By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
Fully perform, partly perform on the user computer on the user computer, the software kit independent as one performs, portion
Divide and partly perform or performed completely on remote computer or server on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
Pass through Internet connection for business).
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (12)
- A kind of 1. installation kit packaging method by all kinds of means, it is characterised in that the described method includes:Target installation kit is obtained from version control system by continuous integrating instrument Jenkins;Wherein, the target installation kit To need the initial installation kit packed by all kinds of means in the version control system;The packing task by all kinds of means of the target installation kit is established by Jenkins, and according to the task life of packing by all kinds of means Wrapped by all kinds of means into the target installation kit is corresponding.
- 2. according to the method described in claim 1, it is characterized in that, it is described by continuous integrating instrument Jenkins from version Before obtaining target installation kit in control system, the method further includes:The initial installation kit of developer's generation is committed in the version control system according to pre-set rule;Unified pipe is carried out to the attribute information of the initial installation kit and the initial installation kit by the version control system Reason, the attribute information include directory information, historical record and modification of the initial installation kit in the version control system Details.
- 3. according to the method described in claim 1, it is characterized in that, it is described by continuous integrating instrument Jenkins from version control Target installation kit is obtained in system processed, including:The path parameter of the target installation kit is configured in the Jenkins according to the directory information of the target installation kit, The directory information includes the target installation kit version number and version order in the version control system;The target installation kit is obtained by the Jenkins from the version control system according to the path parameter.
- 4. according to the method described in claim 1, it is characterized in that, described establish the target installation kit by Jenkins Pack by all kinds of means task, including:The corresponding output directory wrapped by all kinds of means of the target installation kit is set by the Jenkins;The packing task by all kinds of means of the target installation kit is established by Jenkins according to the output directory wrapped by all kinds of means.
- 5. according to the method described in claim 4, it is characterized in that, pass through in the output directory wrapped by all kinds of means described in the basis Jenkins is established after the task of packing by all kinds of means of the target installation kit, is further included:The corresponding bag by all kinds of means of the target installation kit is stored into the file belonging to the output directory wrapped by all kinds of means;The bag by all kinds of means is pushed to by designated person by application programming interfaces API.
- 6. a kind of installation kit packing apparatus by all kinds of means, it is characterised in that described device includes:Installation kit acquisition module, for obtaining target installation kit from version control system by continuous integrating instrument Jenkins; Wherein, the target installation kit is the initial installation kit for needing to pack by all kinds of means in the version control system;Packetization module by all kinds of means, for establishing the packing task by all kinds of means of the target installation kit by Jenkins, and according to institute State task of packing by all kinds of means and generate that the target installation kit is corresponding to be wrapped by all kinds of means.
- 7. device according to claim 6, it is characterised in that described device further includes:Installation kit submits enclosed mass, and the initial installation kit for developer to be generated is committed to according to pre-set rule In the version control system;Installation kit management module, for by the version control system to the initial installation kit and the initial installation kit Attribute information is managed collectively, and the attribute information includes the initial installation kit to be believed in the catalogue of the version control system Breath, historical record and modification details.
- 8. device according to claim 6, it is characterised in that the installation kit acquisition module includes:Dispensing unit, for the target installation described in Jenkins configurations of the directory information according to the target installation kit The path parameter of bag, the directory information include the target installation kit version number and version in the version control system Order;Acquiring unit, described in being obtained according to the path parameter by the Jenkins from the version control system Target installation kit.
- 9. device according to claim 6, it is characterised in that the packetization module by all kinds of means includes:Output directory setting unit, for by the Jenkins set the target installation kit it is corresponding wrap by all kinds of means it is defeated Go out catalogue;Packing task construction unit, the output directory for being wrapped by all kinds of means according to are established the target by Jenkins and are pacified Fill the packing task by all kinds of means of bag.
- 10. device according to claim 9, it is characterised in that described device further includes:Bag memory module by all kinds of means, for by the target installation kit it is corresponding by all kinds of means bag store to it is described wrap by all kinds of means it is defeated Go out in the file belonging to catalogue;Bag pushing module by all kinds of means, for the bag by all kinds of means to be pushed to designated person by application programming interfaces API.
- 11. a kind of computer equipment, it is characterised in that the computer equipment includes:One or more processors;Storage device, for storing one or more programs,When one or more of programs are performed by one or more of processors so that one or more of processors are real The now packaging method by all kinds of means of the installation kit as described in any in claim 1-5.
- 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor Installation kit as described in any in claim 1-5 packaging method by all kinds of means is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429980.7A CN108037949B (en) | 2017-12-26 | 2017-12-26 | Installation package multi-channel packaging method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711429980.7A CN108037949B (en) | 2017-12-26 | 2017-12-26 | Installation package multi-channel packaging method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108037949A true CN108037949A (en) | 2018-05-15 |
CN108037949B CN108037949B (en) | 2020-09-15 |
Family
ID=62101343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711429980.7A Active CN108037949B (en) | 2017-12-26 | 2017-12-26 | Installation package multi-channel packaging method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108037949B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656572A (en) * | 2018-11-14 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Packaging method and device, computer equipment, the storage medium of installation kit |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068818A (en) * | 2015-08-26 | 2015-11-18 | 网易(杭州)网络有限公司 | Channel package generation method and apparatus and channel package batch generation method and system |
CN105487881A (en) * | 2015-08-20 | 2016-04-13 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system |
CN106775912A (en) * | 2016-12-15 | 2017-05-31 | 广州视源电子科技股份有限公司 | Software release method and system |
CN106843939A (en) * | 2016-12-30 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | The generation method and device of the channel bag of application |
US20180060065A1 (en) * | 2016-09-01 | 2018-03-01 | Dropbox, Inc. | Advanced packaging techniques for improving work flows |
-
2017
- 2017-12-26 CN CN201711429980.7A patent/CN108037949B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487881A (en) * | 2015-08-20 | 2016-04-13 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system |
WO2017028733A1 (en) * | 2015-08-20 | 2017-02-23 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system and machine-readable storage medium |
CN105068818A (en) * | 2015-08-26 | 2015-11-18 | 网易(杭州)网络有限公司 | Channel package generation method and apparatus and channel package batch generation method and system |
US20180060065A1 (en) * | 2016-09-01 | 2018-03-01 | Dropbox, Inc. | Advanced packaging techniques for improving work flows |
CN106775912A (en) * | 2016-12-15 | 2017-05-31 | 广州视源电子科技股份有限公司 | Software release method and system |
CN106843939A (en) * | 2016-12-30 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | The generation method and device of the channel bag of application |
Non-Patent Citations (2)
Title |
---|
XINGMING FU: "A novel 3D neural probe with integrated channel and its package", 《2014 IEEE 64TH ELECTRONIC COMPONENTS AND TECHNOLOGY CONFERENCE (ECTC)》 * |
移动平台: "Android开发之Jenkins+Gradle实现持续集成、apk多渠道打包", 《HTTP://WWW.BUBUKO.COM/INFODETAIL-1588010.HTML》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656572A (en) * | 2018-11-14 | 2019-04-19 | 深圳壹账通智能科技有限公司 | Packaging method and device, computer equipment, the storage medium of installation kit |
Also Published As
Publication number | Publication date |
---|---|
CN108037949B (en) | 2020-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090319467A1 (en) | Simplifying the creation of user-defined custom elements for use in a graphical modeling application | |
CN107491329A (en) | Docker mirror images construction method, equipment, storage medium and electronic installation | |
CN108363564A (en) | Entry modularization implementation method, device, terminal device and storage medium | |
JPS59154521A (en) | Reconstruction of system | |
CN105814579A (en) | Sandboxed application data redirection to datacenters | |
US20150143267A1 (en) | SYSTEM AND METHOD FOR DEVELOPING A RULE-BASED EVENT-DRIVEN MULTI-LAYERED FRONTEND FOR BUSINESS SERVICES AND RENDERING THE GUIs ON MULTIPLE CLIENT DEVICES | |
CN104238881A (en) | Terminal information display method and device and terminal | |
CN108595187A (en) | Method, device and the storage medium of Android installation kit integrated software development kit | |
CN103853535A (en) | Method and device for modifying middleware | |
CN109284126B (en) | Automatic class library updating method and device, electronic equipment and storage medium | |
CN113821201A (en) | Code development method and device, electronic equipment and storage medium | |
CN115495069A (en) | Model-driven coal industry software flow implementation method, device and equipment | |
CN108037949A (en) | Installation kit packaging method, device, computer equipment and storage medium by all kinds of means | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN111596931B (en) | Application program packaging method and device, electronic equipment and readable storage medium | |
CN113052305A (en) | Method for operating a neural network model, electronic device and storage medium | |
US20200004389A1 (en) | Hierarchy editor tool for source code | |
CN110457318A (en) | The update method of data field, device, medium, electronic equipment in block chain | |
JP6576608B1 (en) | Drawing support device, display device, drawing support method, and computer program | |
CN114253536A (en) | Calling method of interface design component, terminal device and readable storage medium | |
CN108920695B (en) | A kind of data query method, apparatus, equipment and storage medium | |
TW201523504A (en) | Device for providing context-aware guidance for healthcare and method and computer readable medium thereof | |
CN109684363A (en) | The polymorphic material processing method of multiterminal, device, server and storage medium | |
JP4672695B2 (en) | Control system development support apparatus, control system development support method, and program for causing computer to execute the method | |
US9372669B2 (en) | Multiple architecture viewpoints in single unified modeling language (UML) model |
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 |