CN112596814B - Integrated packaging method, apparatus, device, medium and program product for items - Google Patents

Integrated packaging method, apparatus, device, medium and program product for items Download PDF

Info

Publication number
CN112596814B
CN112596814B CN202011553997.5A CN202011553997A CN112596814B CN 112596814 B CN112596814 B CN 112596814B CN 202011553997 A CN202011553997 A CN 202011553997A CN 112596814 B CN112596814 B CN 112596814B
Authority
CN
China
Prior art keywords
target
project
pipeline
result data
target element
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.)
Active
Application number
CN202011553997.5A
Other languages
Chinese (zh)
Other versions
CN112596814A (en
Inventor
律小娇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011553997.5A priority Critical patent/CN112596814B/en
Publication of CN112596814A publication Critical patent/CN112596814A/en
Application granted granted Critical
Publication of CN112596814B publication Critical patent/CN112596814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure discloses an integrated packaging method, an integrated packaging device, integrated packaging equipment, integrated packaging media and integrated packaging program products for projects, relates to the field of artificial intelligence, further relates to the field of cloud computing, and particularly relates to the field of platform application. The specific implementation scheme is as follows: triggering and executing a target element pipeline matched with a target element when element development result data matched with the target element is detected; in the target element pipeline, carrying out integrated release on the target element based on the element development result data, and triggering and executing a general project pipeline after the integrated release is completed; in the general project pipeline, the target project to which the target element belongs is integrated and packaged according to the element development result data, so that the delivery efficiency of the project is improved.

Description

Integrated packaging method, apparatus, device, medium and program product for items
Technical Field
The present disclosure relates to the field of artificial intelligence, further to the field of cloud computing, and in particular to the field of platform applications.
Background
A software engineering project may integrate a plurality of product modules and/or functional modules. The codes of the product modules and the function modules are integrated and packaged. The formed data package is deployed on the electronic equipment, and the electronic equipment can execute codes of all product modules or functional modules in the software engineering project to realize the functions of all products. How to improve the efficiency of code set packing and data packet deployment, and further to improve the delivery speed of the project is important.
Disclosure of Invention
The present disclosure provides an integrated packaging method, apparatus, device, medium and program product for items.
According to an aspect of the present disclosure, there is provided an integrated packaging method of items, the method including:
triggering and executing a target element pipeline matched with a target element when element development result data matched with the target element is detected;
in the target element pipeline, carrying out integrated release on the target element based on the element development result data, and triggering and executing a general project pipeline after the integrated release is completed;
and in the general project pipeline, integrating and packaging the target project to which the target element belongs according to the element development result data.
According to another aspect of the present disclosure, there is provided an integrated packaging device for items, the device comprising:
the element pipeline triggering module is used for triggering and executing a target element pipeline matched with the target element when element development result data matched with the target element is detected;
the project pipeline triggering module is used for carrying out integrated release on the target element based on the element development result data in the target element pipeline and triggering and executing a general project pipeline after the integrated release is completed;
And the project integration packaging module is used for integrating and packaging the target project to which the target element belongs according to the element development result data in the general project pipeline.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the integrated packaging method of items of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the integrated packaging method of an item of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method of integrated packaging of items of any of the embodiments of the present disclosure.
The technology according to the present disclosure improves delivery efficiency of the item.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of an integrated packaging method for items according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an integrated packaging method for items according to an embodiment of the present disclosure;
FIG. 3a is a schematic diagram of an integrated packaging method for items according to an embodiment of the present disclosure;
FIG. 3b is a schematic diagram of an integrated packaging process for an item according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural view of an integrated bagging apparatus for items according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing an integrated packaging method for items of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of an integrated packaging method for an item in an embodiment of the present disclosure, where the technical solution of the embodiment of the present disclosure is applicable to a case of integrally packaging an item through two pipelines, where the method may be performed by an integrated packaging device for an item, where the device may be implemented by software and/or hardware, and may generally be integrated in an electronic device, for example, a terminal device, where the method of the embodiment of the present disclosure specifically includes the following steps:
s101, triggering and executing a target element pipeline matched with a target element when element development result data matched with the target element is detected.
Wherein, the target element is a component of a software integrated project, and a software integrated project may include one or more target elements, and specifically, the target element may refer to a product module integrated in a project and used for implementing one or more functions, and may also refer to a separate functional module integrated in a project. Exemplary, the software integration project is an e-commerce product project, and the target elements include: the system comprises a clothing electronic commerce product module, a digital electronic commerce product module, a fresh electronic commerce product module, a medical electronic commerce product module and the like, wherein each product module comprises a general function module for searching and/or list display and the like, and the general function module can be integrated into the integrated project, so that each product is convenient to call.
The element development result data refers to a file corresponding to the target element, which is uploaded by a developer, and specifically may include a code file, a configuration file, or a functional module, a component, a resource, and the like, which are matched with the target element, or on which the code file is written.
The target element pipeline is used for compiling, packaging and publishing target elements, and concretely refers to a target element packaging flow related to target elements, target items to which the target elements belong and target running environments matched with the target items. When the target elements belong to different projects or belong to the same project but adapt to different running environments, the target element pipelines for packing the target elements are different. In addition, the target element pipeline is also used for triggering an item pipeline for packaging the item to which the target element belongs after the target element is packaged.
In the embodiment of the disclosure, when element development result data matched with a target element uploaded by a developer is detected, a target element pipeline matched with the target element is triggered to execute compiling, packaging and publishing processes of the target element, specifically, when the developer uploads the element development result data matched with the target element, a function update list can be carried, which function modules contained in the target element are updated by the current developer is recorded in a switch mode in the list, for example, the switch state of a code file corresponding to the updated function module is marked as on, the switch state of a code file corresponding to the function which is not updated is marked as off, and at this time, the updated element development result data matched with the target element can be obtained by detecting the function update list, and then the target element pipeline matched with the target element is triggered.
S102, in the target element pipeline, integrated release is carried out on the target element based on element development result data, and after integrated release is completed, the general project pipeline is triggered and executed.
The general project pipeline is used for compiling, packaging and publishing projects to which target elements belong, is general for different projects or different running environments, namely, packaging and publishing of a plurality of projects with different running environments can be achieved through the general project pipeline, packaging and publishing of different projects are achieved through the general project pipeline, labor cost is reduced, and project delivery efficiency is improved.
In the embodiment of the disclosure, in a target element pipeline, based on acquired element development result data, integrated release is performed on a target element, and after integration and release are completed, a general project pipeline is triggered and executed to perform packaging release on projects to which the target element belongs. The target element assembly line firstly compiles development result data, packages the compiling result after the compiling is finished, further realizes the release of target elements, directly triggers the general project assembly line to package target projects to which the target elements belong after the release of the target elements is finished, does not need to manually participate in the packaging and release processes during the process, reduces labor cost, directly triggers the general project assembly line to package projects after the release of the target elements, realizes flow series connection, and further improves project delivery efficiency.
S103, in the general project pipeline, integrating and packaging the target project to which the target element belongs according to the element development result data.
In the embodiment of the disclosure, after integrated release of a target element is completed, update configuration information is uploaded to a file storage service (Baidu Object Storage, BOS), meanwhile, whether element development result data meets a specification is detected, if yes, the method directly shifts to a general project pipeline, integrated packaging is carried out on a target project to which the target element belongs according to the element development result data, specifically, in the general project pipeline, update configuration information of the corresponding target element is firstly obtained according to the element development result data, history configuration information corresponding to the target element is obtained from the BOS, the update configuration information and the history configuration information are compared, and according to a comparison result, the development result data corresponding to the target project to which the target element belongs is updated as project development result data, and finally integrated packaging is carried out on the project development result data, so that a serial processing flow of the target element and the target project to which the target element belongs is realized, and project delivery efficiency is improved.
According to the technical scheme, when element development result data matched with the target element is detected, a target element pipeline matched with the target element is triggered to be executed, the target element is integrally released based on the element development result data in the target element pipeline, and after the integrated release is completed, a general project pipeline is triggered to be executed, and in the general project pipeline, the target project to which the target element belongs is integrally packaged according to the element development result data, so that the problems that in the prior art, due to different functions of project products, the adapted operation environment is complex, a large amount of manpower is required to be invested for integrally packaging the project are solved, the integrated packaging of the target project is realized through the target element pipeline and the general project pipeline, the labor cost is reduced, and the integrated packaging efficiency of the project is improved.
FIG. 2 is a schematic diagram of an integrated packaging method for an item in an embodiment of the present disclosure, further refined on the basis of the above-described embodiment, providing specific steps for triggering execution of a target element pipeline matching a target element upon detection of element development result data matching the target element. An integrated packaging method for an item according to an embodiment of the present disclosure is described below with reference to fig. 2, including the following:
s201, acquiring target codes corresponding to target elements submitted by developers through a unified development template and a function update list matched with the target elements.
The function update list is used for recording a list of function modules updated by a current developer, and specifically, the function update list records which function modules contained in a target element are updated by the current developer in a switch mode.
The target element is an e-commerce clothing product module in an e-commerce clothing product project, when a developer updates a hot-sale commodity display function module in the e-commerce clothing product module, the on-off state of the hot-sale commodity display function module in the e-commerce clothing product module is set to be on, and the on-off states of other function modules which are not updated in the e-commerce clothing product module are set to be off, so that the function module which is updated in the code submitted by the developer is characterized as the hot-sale commodity display function module.
In the embodiment of the disclosure, a target code corresponding to a target element submitted by a developer through a unified development template and a function update list matched with the target element are acquired, so that element development result data contained in the target code is determined according to the function update list. The target code is all codes corresponding to the target elements, and comprises a unified development template and functional codes written by a developer.
Optionally, the target element includes a product module, or a function module.
In this alternative embodiment, the target element includes a product module, or a function module. The target element is an e-commerce clothing product module in the e-commerce product project, the functional module can be a module contained in the product module, such as a search module or a list display module, and the functional module can also be a module integrated into the project, so that each product can be conveniently called, and development efficiency is improved.
S202, extracting element development result data matched with a target element from the target code according to the function update list.
In the embodiment of the disclosure, after the target code corresponding to the target element and the function update list matched with the target element are obtained, codes of the function modules updated in the target code are determined and extracted as development result data according to the on-off states of the function modules in the function update list, specifically, the function module corresponding codes with the on-off states are extracted as element development result data, so that the element development result data matched with the target element can be quickly and accurately obtained according to the function update list.
And S203, when element development result data matched with the target element is detected, acquiring a target project to which the target element belongs and a target running environment matched with the target project.
In the embodiment of the disclosure, after obtaining the element development result data matched with the target element, in order to perform the process of packaging and publishing the target element, a target item to which the target element belongs and a target running environment matched with the target item need to be further obtained, and then a target element pipeline corresponding to the target element is determined according to the target element, the target item and the target running environment, so as to achieve packaging and publishing of the target element.
S204, judging whether a target element pipeline which is matched with the target element, the target item and the target running environment together is established in advance, if yes, executing step 206, otherwise, executing step 205.
In the embodiment of the disclosure, in order to implement packaging and publishing of a target element, first, a target element pipeline corresponding to the target element needs to be determined, and for different projects, different target elements or different running environments, different target element pipelines need to be created to perform packaging and publishing of the target element, that is, for the target element, the target project to which the target element belongs, and the running environment corresponding to the target project, a unique target element pipeline is determined, and each target element pipeline needs to be created only once, that is, when the same target element contained in the same project adapted to the same running environment needs to be packaged and published next time, the target element pipeline does not need to be created again, so that the target element packaging and publishing efficiency can be improved.
For example, the item to which the target element belongs is an item a, and the running environment for matching the item a is a Windows7 operating system, first, it is determined whether a target element pipeline that is matched with the target element, the item a, and the Windows7 operating system together is created in advance.
S205, creating a target element pipeline according to the target element, the target item and the target running environment.
In the embodiment of the disclosure, when there is no target element pipeline which is matched with the target element, the target item and the target running environment together, the target element pipeline needs to be created according to the target element, the target item and the target running environment.
S206, triggering an execution target element pipeline.
In the embodiment of the disclosure, when a target element pipeline matched with the target element, the target item and the target running environment exists, the target element pipeline is directly triggered to be executed, and the target element is packaged.
S207, in the target element pipeline, integrated release is carried out on the target element based on element development result data, and after integrated release is completed, the general project pipeline is triggered and executed.
S208, in the general project pipeline, integrating and packaging the target project to which the target element belongs according to the element development result data.
According to the technical scheme, the target codes corresponding to the target elements and the function update list matched with the target elements, submitted by the developer through the unified development template, are obtained, element development result data matched with the target elements are extracted from the target codes according to the function update list, then the target items to which the target elements belong and the target running environments matched with the target items are obtained, whether a target element pipeline matched with the target elements, the target items and the target running environments is built in advance or not is judged, if yes, the target element pipeline is triggered to be executed, otherwise, the target element pipeline is created and triggered to be executed, further, in the target element pipeline, the target elements are integrally released based on the element development result data, and after the integrated release is completed, the general item pipeline is triggered to be executed, finally, in the general item pipeline, the target items to which the target elements belong are integrally packaged according to the element development result data, and under the conditions of different item product functions and different adaptive running environments, the integrated packaging of the items can be achieved through the target element pipeline and the general item pipeline, and the general item pipeline is reduced in cost and labor.
Fig. 3a is a schematic diagram of an integrated packing method for a project in an embodiment of the present disclosure, which is further refined on the basis of the foregoing embodiment, and provides a specific step of performing integrated issue on a target element based on element development result data in a target element pipeline, triggering execution of a general project pipeline after the integrated issue is completed, and a specific step of performing integrated packing on a target project to which the target element belongs according to the element development result data in the general project pipeline. An integrated packaging method for an item according to an embodiment of the present disclosure is described below with reference to fig. 3a, including the following:
s301, triggering and executing a target element pipeline matched with a target element when element development result data matched with the target element is detected.
S302, compiling the development result data in the target element pipeline to obtain a compiling result.
In the embodiment of the disclosure, as shown in fig. 3b, in the project integration packaging process, in the target element pipeline, firstly, compiling processing is performed on the development result data, whether a compiling error exists or not is judged, and under the condition that no compiling error exists, after compiling is completed, a compiling result corresponding to the target element is obtained.
S303, element packaging processing is carried out on the compiling result to form an element resource file matched with the target element, and the element resource file is uploaded to a release warehouse.
The publishing warehouse is used for storing at least one version of element resource files corresponding to each element and also used for storing at least one version of project resource files corresponding to each project.
In the embodiment of the disclosure, after a compiling result is obtained, element packaging processing is performed on the compiling result to obtain an element resource file matched with a target element, and the element resource file is uploaded to a release warehouse for storage. The publishing warehouse stores element resource files of all versions corresponding to the target element. Only the corresponding target element pipeline is required to be determined, so that compiling and packing release of development result data corresponding to the target element can be realized, and the packing release efficiency of the target element is improved.
S304, triggering an entry through a project pipeline included in the target element pipeline, and verifying whether element development result data meets normative requirements.
In the embodiment of the disclosure, after compiling, packing and publishing the target element, the target element assembly line enters a project assembly line trigger inlet, and the project assembly line trigger inlet is used for performing normalization verification on element development result data according to a pre-packing tool contained in a project packing tool, and directly triggering the project assembly line after a preset normalization condition is met, so that a series flow of target element packing and publishing and target project packing and publishing is realized, the labor cost is reduced, and the project delivery efficiency is improved.
Whether the verification element development result data meets the normative requirement can be specifically at least one of privately-arranged navigation file verification, custom resource migration configuration verification, external resource link verification and the like according to the user specification in advance.
S305, when the project pipeline triggering entry meets the normative requirement, generating update configuration information matched with the element development result data, uploading the update configuration information to a file storage service for storage, and triggering and executing a general project pipeline;
the project pipeline triggering entrance is generated according to the target element, the target project and the target running environment.
The file storage service is used for storing configuration information of each element in the project, the configuration information comprises a plurality of versions, and after each time the function module contained in the element is updated, updated configuration information matched with the element development result data is generated.
In the embodiment of the disclosure, when the project pipeline triggering entry determines that the element development result data meets the normative requirement, update configuration information matched with the element development result data is generated and uploaded to a file storage server for storage.
The update configuration information may be generated based on the extracted version identification information, module information, trigger user information, and verification identification information of the target element. The historical version identification information of the target element can be obtained according to the element updating times, and the set values are accumulated to obtain the version identification information corresponding to the element development result data. The module information is used for identifying the target element, and the module information can include storage position information of element development result data of the target element, identification information of a target item to which the target element belongs, and the like. The trigger user information may refer to identification information of a trigger user of the target item packaging method, or identification information of a trigger user generated by element development result data of the target element. For example, the trigger user information may include a name of the trigger user. The verification identification information is used to determine whether the target element update triggers the target item update package, and may include token information for the target element, for example. According to the triggering user information contained in the updated configuration information, quick problem positioning and quick interface person positioning can be performed, and project problem checking efficiency is improved.
S306, in the general project pipeline, updating configuration information of the target element is obtained according to the element development result data, and in project configuration information of the target project, historical product configuration information corresponding to the target element is obtained.
In the embodiment of the disclosure, in a general project pipeline, update configuration information of a target element is obtained according to element development result data, the update configuration information is generated according to version identification information, module information, trigger user information and verification identification information of the target element, and meanwhile, historical product configuration information corresponding to the target element is obtained in a file storage service through a packaging tool in a project packaging tool. The project configuration information stored in the file storage service is distinguished and isolated through the project and the environment, specifically, the project configuration information corresponding to the target project can be determined in the file storage service through the project identification and the running environment, and the historical product configuration information corresponding to the target element is obtained from the project configuration information of the target project.
S307, forming project development result data according to the project configuration information, the historical product configuration information and the element development result data.
In the embodiment of the disclosure, the project configuration information and the historical product configuration information are compared to obtain a comparison result, and the project development result data of the project to which the target element belongs is updated according to the comparison result and the element development result data. By comparing the project configuration information with the historical product configuration information and determining the project development result data according to the comparison result and the element development result data, the project packaging tool can be directly used for acquiring the project development result data, manual acquisition is not needed, and the acquisition efficiency and accuracy of the project development result data are improved.
S308, packaging the project development result data to form a project resource file, and uploading the project resource file to a release warehouse.
In the embodiment of the disclosure, the updated project development result data is packaged by an uploading version tool in a project packaging tool to obtain a project resource file, the project resource file is uploaded to a release warehouse to be stored, and meanwhile, the updated configuration information of the current version of the target element is stored as historical product configuration information in a file storage server. The release warehouse stores at least one version of project resource file corresponding to each project.
S309, mirror image packaging is carried out on the project development result data to form a mirror image packaging result, and the mirror image packaging result is uploaded to a mirror image warehouse.
In the embodiment of the disclosure, besides the packaging processing of the project development result data, the project development result data can be subjected to mirror image packaging to form a mirror image packaging result which is uploaded to a mirror image warehouse, the mirror image packaging result can be deployed in different operation environments, various deployment environments are opened, deployment in different operation environments can be realized, and project deployment efficiency is improved.
S310, deploying the mirror image packaging result in servers of different running environments.
In the embodiment of the disclosure, the deployment tool in the project packaging tool deploys the image packaging result in servers in different running environments, for example, the image packaging result obtained for the project A can be deployed in a Windows7 running environment or a Linux running environment, so that the workload of deploying projects in different running environments is reduced, and the project delivery efficiency is improved.
According to the technical scheme of the embodiment of the disclosure, when element development result data matched with a target element is detected, a target element pipeline matched with the target element is triggered and executed, in the target element pipeline, firstly compiling processing is carried out on the development result data, then element packaging processing is carried out on the compiling result, an element resource file matched with the target element is formed and uploaded to a release warehouse, further, a project pipeline trigger entry included in the target element pipeline is used for verifying whether the element development result data meets the normative requirement, if yes, update configuration information matched with the element development result data is generated and uploaded to a file storage service for storage, and a general project pipeline is triggered and executed, in the general project pipeline, firstly, update configuration information of the target element is obtained according to the element development result data, and in the project configuration information of the target project, historical product configuration information and the element development result data are obtained, further, packaging processing is carried out on the project development result data to form a project resource file, and uploading the project resource file to the release warehouse, finally, the project development result data is formed and mirrored image is packaged, and the mirror image is not integrated, and the efficiency of the mirror image is improved, and the mirror image can be packaged, the mirror image can be deployed and the environment is improved, and the environment is integrated, and the human-image can be packaged and the environment is improved at the same, and the project delivery efficiency is improved.
Fig. 4 is a block diagram of an integrated packaging device for items in an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a case of integrally packaging items through two pipelines, and the device is implemented by using software and/or hardware and is specifically configured in an electronic device with a certain data computing capability. As shown in fig. 4, the integrated packaging apparatus 400 for the project includes an element pipeline trigger module 401, a project pipeline trigger module 402, and a project integrated packaging module 403.
An element pipeline triggering module 401, configured to trigger, when element development result data matching with a target element is detected, execution of a target element pipeline matching with the target element;
the project pipeline triggering module 402 is configured to perform integrated release on the target element in the target element pipeline based on the element development result data, and trigger execution of a general project pipeline after the integrated release is completed;
and the project integration and packaging module 403 is configured to integrate and package, in the general project pipeline, a target project to which the target element belongs according to the element development result data.
According to the technical scheme, when element development result data matched with the target element is detected, a target element pipeline matched with the target element is triggered to be executed, the target element is integrally released based on the element development result data in the target element pipeline, and after the integrated release is completed, a general project pipeline is triggered to be executed, and in the general project pipeline, the target project to which the target element belongs is integrally packaged according to the element development result data, so that the problems that in the prior art, due to different functions of project products, the adapted operation environment is complex, a large amount of manpower is required to be invested for integrally packaging the project are solved, the integrated packaging of the target project is realized through the target element pipeline and the general project pipeline, the labor cost is reduced, and the integrated packaging efficiency of the project is improved.
Optionally, the target element includes a product module, or a function module.
Optionally, the element pipeline triggering module 401 includes:
the project environment acquisition unit is used for acquiring a target project to which the target element belongs and a target running environment matched with the target project when element development result data matched with the target element is detected;
an element pipeline judging unit for judging whether a target element pipeline which is matched with the target element, the target item and the target running environment together is established in advance;
an element pipeline triggering unit, configured to trigger execution of a target element pipeline when there is a target element pipeline that is pre-established and that is matched with the target element, the target item, and the target running environment together;
and the element pipeline creation unit is used for creating and triggering the execution of the target element pipeline according to the target element, the target item and the target running environment when a pre-established target element pipeline which is matched with the target element, the target item and the target running environment jointly does not exist.
Optionally, the integrated packaging apparatus 400 of the item further includes:
the updating list acquisition module is used for acquiring target codes corresponding to the target elements submitted by the developer through the unified development template and a function updating list matched with the target elements;
and the element development result data extraction module is used for extracting element development result data matched with the target element from the target code according to the function update list.
Optionally, the project pipeline triggering module 402 includes:
the compiling result obtaining unit is used for compiling the development result data to obtain a compiling result;
and the element resource file issuing unit is used for carrying out element packaging processing on the compiling result to form an element resource file matched with the target element, and uploading the element resource file to an issuing warehouse.
Optionally, the project pipeline triggering module 402 includes:
the normalization verification unit is used for verifying whether the element development result data meets normalization requirements or not through a project pipeline trigger entry included in the target element pipeline;
the project pipeline triggering unit is used for generating update configuration information matched with the element development result data to be uploaded to a file storage service for storage when the project pipeline triggering inlet meets the normalization requirement, and triggering the execution of the general project pipeline;
The project pipeline triggering entry is generated according to the target element, the target project and the target running environment.
Optionally, the project integration packaging module 403 includes:
a configuration information acquisition unit, configured to acquire updated configuration information of the target element according to the element development result data, and acquire historical product configuration information corresponding to the target element in item configuration information of the target item;
a project development result data acquisition unit, configured to form project development result data according to the project configuration information, the historical product configuration information and the element development result data;
and the project resource file issuing unit is used for carrying out packaging processing on the project development result data to form a project resource file, and uploading the project resource file to the issuing warehouse.
The integrated packaging apparatus 400 of the item further includes:
the mirror image packaging result uploading module is used for mirror image packaging of the project development result data to form a mirror image packaging result and uploading the mirror image packaging result to a mirror image warehouse;
and the mirror image packaging result deployment module is used for deploying the mirror image packaging result in servers of different running environments.
The integrated packaging device for the project can execute the integrated packaging method for the project provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the integrated packaging method for the project.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 5 illustrates a schematic block diagram of an example electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the integrated packaging method of items. For example, in some embodiments, the integrated packaging method of items may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the integrated packaging method of items described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the integrated packaging method of items in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. An integrated packaging method for items, comprising:
when element development result data matched with a target element is detected, acquiring a target item to which the target element belongs and a target running environment matched with the target item;
judging whether a target element pipeline which is matched with the target element, the target item and the target running environment together is established in advance;
if yes, triggering and executing the target element pipeline;
Otherwise, creating and triggering to execute the target element pipeline according to the target element, the target item and the target running environment;
in the target element pipeline, carrying out integrated release on the target element based on the element development result data, and after the integrated release is completed, triggering an entry through a project pipeline included in the target element pipeline, and verifying whether the element development result data meets the normalization requirement; when the project pipeline triggering entrance meets the normative requirement, generating updated configuration information matched with the element development result data, uploading the updated configuration information to a file storage service for storage, and triggering and executing a general project pipeline; the project pipeline triggering inlet is generated according to the target element, the target project and the target running environment;
acquiring updated configuration information of the target element according to the element development result data, and acquiring historical product configuration information corresponding to the target element in item configuration information of the target item;
forming project development result data according to the project configuration information, the historical product configuration information and the element development result data;
And packaging the project development result data to form a project resource file, and uploading the project resource file to a release warehouse.
2. The method of claim 1, wherein the target element comprises a product module, or a function module.
3. The method of claim 1, detecting element development result data matching a target element, comprising:
acquiring target codes corresponding to the target elements and function update lists matched with the target elements, which are submitted by developers through a unified development template;
and extracting element development result data matched with the target element from the target code according to the function update list.
4. The method of claim 1, wherein the integrated publishing of the target element based on the element development result data in the target element pipeline comprises:
compiling the development result data to obtain a compiling result;
and carrying out element packaging processing on the compiling result to form an element resource file matched with the target element, and uploading the element resource file to a release warehouse.
5. The method of claim 1, after packaging the project development result data to form a project resource file and uploading the project resource file into the release repository, further comprising:
carrying out mirror image packaging on the project development result data to form a mirror image packaging result, and uploading the mirror image packaging result to a mirror image warehouse;
and deploying the mirror image packaging result in servers of different running environments.
6. An integrated packaging device for items, comprising:
an element pipeline trigger module comprising:
the project environment acquisition unit is used for acquiring a target project to which the target element belongs and a target running environment matched with the target project when element development result data matched with the target element is detected;
an element pipeline judging unit for judging whether a target element pipeline which is matched with the target element, the target item and the target running environment together is established in advance;
an element pipeline triggering unit, configured to trigger execution of a target element pipeline when there is a target element pipeline that is pre-established and that is matched with the target element, the target item, and the target running environment together;
An element pipeline creation unit, configured to create and trigger execution of a target element pipeline according to the target element, the target item, and the target running environment when there is no pre-established target element pipeline that matches the target element, the target item, and the target running environment together;
the project pipeline triggering module is used for carrying out integrated release on the target element based on the element development result data in the target element pipeline and triggering and executing a general project pipeline after the integrated release is completed; the project pipeline triggering module comprises:
the normalization verification unit is used for verifying whether the element development result data meets normalization requirements or not through a project pipeline trigger entry included in the target element pipeline;
the project pipeline triggering unit is used for generating update configuration information matched with the element development result data to be uploaded to a file storage service for storage when the project pipeline triggering inlet meets the normalization requirement, and triggering the execution of the general project pipeline;
the project pipeline triggering inlet is generated according to the target element, the target project and the target running environment;
An item integration packaging module comprising:
a configuration information acquisition unit, configured to acquire updated configuration information of the target element according to the element development result data, and acquire historical product configuration information corresponding to the target element in item configuration information of the target item;
a project development result data acquisition unit, configured to form project development result data according to the project configuration information, the historical product configuration information and the element development result data;
and the project resource file issuing unit is used for carrying out packaging processing on the project development result data to form a project resource file, and uploading the project resource file to an issuing warehouse.
7. The apparatus of claim 6, wherein the target element comprises a product module, or a function module.
8. The apparatus of claim 6, wherein the integrated packaging apparatus of the item further comprises:
the updating list acquisition module is used for acquiring target codes corresponding to the target elements submitted by the developer through the unified development template and a function updating list matched with the target elements;
and the element development result data extraction module is used for extracting element development result data matched with the target element from the target code according to the function update list.
9. The apparatus of claim 6, wherein the project pipeline trigger module comprises:
the compiling result obtaining unit is used for compiling the development result data to obtain a compiling result;
and the element resource file issuing unit is used for carrying out element packaging processing on the compiling result to form an element resource file matched with the target element, and uploading the element resource file to an issuing warehouse.
10. The apparatus of claim 6, wherein the integrated packaging apparatus of the item further comprises:
the mirror image packaging result uploading module is used for mirror image packaging of the project development result data to form a mirror image packaging result and uploading the mirror image packaging result to a mirror image warehouse;
and the mirror image packaging result deployment module is used for deploying the mirror image packaging result in servers of different running environments.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the integrated packaging method of the item of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the integrated packaging method of the item of any one of claims 1-5.
CN202011553997.5A 2020-12-24 2020-12-24 Integrated packaging method, apparatus, device, medium and program product for items Active CN112596814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011553997.5A CN112596814B (en) 2020-12-24 2020-12-24 Integrated packaging method, apparatus, device, medium and program product for items

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011553997.5A CN112596814B (en) 2020-12-24 2020-12-24 Integrated packaging method, apparatus, device, medium and program product for items

Publications (2)

Publication Number Publication Date
CN112596814A CN112596814A (en) 2021-04-02
CN112596814B true CN112596814B (en) 2024-03-01

Family

ID=75201933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011553997.5A Active CN112596814B (en) 2020-12-24 2020-12-24 Integrated packaging method, apparatus, device, medium and program product for items

Country Status (1)

Country Link
CN (1) CN112596814B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521363B (en) * 2023-04-06 2024-01-30 中保车服科技服务股份有限公司 Code packaging method, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193615A (en) * 2017-06-29 2017-09-22 北京全域医疗技术有限公司 The renewal dispositions method and device of item code information
EP3407221A1 (en) * 2017-05-27 2018-11-28 Beijing Xiaomi Mobile Software Co., Ltd. Methods and devices for searching and displaying information on a terminal
CN109241216A (en) * 2018-07-31 2019-01-18 国网河南省电力公司南阳供电公司 The method for realizing grid-based management using power grid hierarchical storage database schema
CN109960643A (en) * 2017-12-22 2019-07-02 网宿科技股份有限公司 A kind of code test method and device
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10430170B2 (en) * 2016-10-31 2019-10-01 Servicenow, Inc. System and method for creating and deploying a release package
US11023215B2 (en) * 2016-12-21 2021-06-01 Aon Global Operations Se, Singapore Branch Methods, systems, and portal for accelerating aspects of data analytics application development and deployment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3407221A1 (en) * 2017-05-27 2018-11-28 Beijing Xiaomi Mobile Software Co., Ltd. Methods and devices for searching and displaying information on a terminal
CN107193615A (en) * 2017-06-29 2017-09-22 北京全域医疗技术有限公司 The renewal dispositions method and device of item code information
CN109960643A (en) * 2017-12-22 2019-07-02 网宿科技股份有限公司 A kind of code test method and device
CN109241216A (en) * 2018-07-31 2019-01-18 国网河南省电力公司南阳供电公司 The method for realizing grid-based management using power grid hierarchical storage database schema
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
A Three-Dimensional Adaptive PSO-Based Packing Algorithm for an IoT-Based Automated e-Fulfillment Packaging System;Tzuu-Hseng S. Lid等;IEEE Access;全文 *
基于DevOps的轻量级持续交付方案;王红蕾;;计算机***应用(第09期);全文 *
基于容器的持续集成和部署方法研究;丘晖;;广东通信技术(第10期);全文 *
基于流水线理念持续集成与持续交付平台的设计与实现;王俊;牛亚运;;软件工程(04);全文 *

Also Published As

Publication number Publication date
CN112596814A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN110704062A (en) Dependency management method, data acquisition method, device and equipment
CN112596814B (en) Integrated packaging method, apparatus, device, medium and program product for items
CN113641544B (en) Method, apparatus, device, medium and product for detecting application state
CN116881156A (en) Automatic test method, device, equipment and storage medium
CN116306396A (en) Chip verification method and device, equipment and medium
CN115509522A (en) Interface arranging method and system for low-code scene and electronic equipment
CN112540805B (en) Integrated item packaging method, integrated item packaging device, integrated item packaging apparatus, integrated item packaging device, integrated item packaging storage medium, and integrated item packaging program product
CN113326796B (en) Object detection method, model training method and device and electronic equipment
US20140059535A1 (en) Software Inventory Using a Machine Learning Algorithm
CN116627432A (en) Front-end application automatic deployment method, device, equipment and medium
CN115048352B (en) Log field extraction method, device, equipment and storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN116382658A (en) Compiling method and device of AI model, computer equipment and storage medium
CN115328526A (en) Dependency package updating method, device, equipment and storage medium
CN112905270B (en) Workflow realization method, device, platform, electronic equipment and storage medium
CN112860811B (en) Method and device for determining data blood relationship, electronic equipment and storage medium
CN116383372B (en) Data analysis method and system based on artificial intelligence
CN116932033A (en) Component packaging method and device, electronic equipment and storage medium
CN111737118B (en) Pipeline testing method and device, electronic equipment and storage medium
CN115576902B (en) Method, device, equipment and medium for processing calibration description file
CN117312123A (en) Bug processing method and device, electronic equipment and storage medium
CN117435503A (en) Test tool generation method, test device, test equipment and test medium
CN114416678A (en) Resource processing method, device, equipment and storage medium
CN117472361A (en) Service modeling method, device, equipment and storage medium
CN113722220A (en) Method and device for determining test case

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