CN111722842A - Pipeline arranging method and device, electronic equipment and storage medium - Google Patents

Pipeline arranging method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111722842A
CN111722842A CN202010475850.2A CN202010475850A CN111722842A CN 111722842 A CN111722842 A CN 111722842A CN 202010475850 A CN202010475850 A CN 202010475850A CN 111722842 A CN111722842 A CN 111722842A
Authority
CN
China
Prior art keywords
pipeline
graphical
resource
template
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010475850.2A
Other languages
Chinese (zh)
Inventor
易存道
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baolande Software Co ltd
Original Assignee
Beijing Baolande Software 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 Baolande Software Co ltd filed Critical Beijing Baolande Software Co ltd
Priority to CN202010475850.2A priority Critical patent/CN111722842A/en
Publication of CN111722842A publication Critical patent/CN111722842A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a pipeline arranging method, a pipeline arranging device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and execution sequences among the resource components; determining execution parameters of each resource component; and determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template. According to the method, the device, the electronic equipment and the storage medium provided by the embodiment of the invention, the software pipeline arrangement is carried out by using a graphical arrangement mode, so that the technical threshold and the maintenance cost of software pipeline maintenance are reduced, and the software development efficiency is improved.

Description

Pipeline arranging method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for arranging pipelines, electronic equipment and a storage medium.
Background
Continuous integration (Continuous integration) is a software development practice, in which team development members often integrate their jobs, and each integration is verified by automated construction (including compilation, release, automated testing) at least once a day, so as to discover integration errors as early as possible. Continuous integration is equivalent to applying the pipelining concept of the traditional industry to the modern software industry, and software pipelining is utilized to improve the efficiency of software development.
In the prior art, the arrangement of software pipelines is usually realized by Jenkins or Blue Ocean. Aiming at different service scenes, when a user uses the software to perform pipeline arrangement, the user needs to master professional pipeline arrangement grammar knowledge and also needs to be familiar with a software development service flow, so that the technical threshold and the maintenance cost of software pipeline maintenance are higher, and the software development efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a pipeline arranging method, a pipeline arranging device, electronic equipment and a storage medium, which are used for solving the problems of high technical threshold and maintenance cost of software pipeline maintenance and low software development efficiency caused by the conventional software pipeline arranging method.
In a first aspect, an embodiment of the present invention provides a pipeline arranging method, including:
determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and execution sequences among the resource components;
determining execution parameters of each resource component;
and determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
Optionally, the method further comprises:
if the graphical assembly line template corresponding to the service scene to be arranged is not obtained, determining a plurality of resource components corresponding to the service scene to be arranged, an execution sequence among the resource components and execution parameters of each resource component;
and determining a graphical pipeline based on a plurality of resource components corresponding to the service scene to be arranged, the execution sequence among the resource components and the execution parameters of each resource component.
Optionally, the determining a graphical pipeline template corresponding to a service scene to be scheduled includes:
selecting a graphical pipeline template corresponding to the service scene to be arranged from a preset graphical pipeline template library;
the preset graphical pipeline template library comprises a plurality of preset graphical pipeline templates and/or a plurality of user-defined graphical pipeline templates.
Optionally, the determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template includes:
adjusting a plurality of resource components in the graphical pipeline template and an execution sequence among the plurality of resource components based on the graphical pipeline template and execution parameters of each resource component in the graphical pipeline template;
and determining the graphical pipeline based on each resource component in the adjusted graphical pipeline template and the execution parameters thereof and the execution sequence among each resource component.
Optionally, the determining a patterning pipeline further includes:
and determining a configuration script corresponding to the graphical pipeline based on the graphical pipeline.
Optionally, the execution order among the resource components includes at least one of serial, parallel, and aggregate.
Optionally, the execution parameters of the respective resource components are determined based on at least one of resource component build parameters, user-defined parameters, and pipeline execution process parameters.
In a second aspect, an embodiment of the present invention provides a pipeline arranging apparatus, including:
the template determining unit is used for determining a graphical pipeline template corresponding to a service scene to be arranged, and the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and an execution sequence among the resource components;
a parameter determining unit, configured to determine an execution parameter of each resource component;
and the graphical determining unit is used for determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the pipeline orchestration method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the pipeline orchestration method according to the first aspect.
According to the pipeline arranging method, the pipeline arranging device, the electronic equipment and the storage medium, the graphical pipeline is determined by determining the graphical pipeline template corresponding to the service scene to be arranged and the execution parameters of all resource components in the graphical pipeline template, the graphical pipeline is determined, the corresponding graphical pipeline template is selected according to different service scenes, the software pipeline arrangement is performed by using a graphical arranging mode, a user does not need to master professional pipeline arranging grammar knowledge, the technical threshold and the maintenance cost of software pipeline maintenance are reduced, and the software development efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a pipeline scheduling method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface of a pipeline graphical layout according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a pipeline scheduling apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, two methods for arranging software pipelines are provided, one is to use a pipeline grammar interface in Jenkins and an editing interface provided by each plug-in to carry out pipeline arrangement, and the other is to use an interface editor provided by Blue Ocean to carry out pipeline arrangement.
The assembly line grammar interface in Jenkins is used for assembly line arrangement, a user needs to master professional assembly line arrangement grammar knowledge, and the user needs to be familiar with a software development business process. In addition, the function of single step in Jenkins is single, and when the function of a complex scene needing to be completed by combining a plurality of steps is met, the difficulty is large, so that the user is complex to operate, mistakes are easy to make, and the software development efficiency is not high.
An interface editor provided by Blue Ocean is used for pipeline arrangement, the association degree of the pipeline arrangement and the service is low, a pipeline meeting the service requirement can be arranged by a professional, and the maintenance cost is high.
In view of the deficiency of the prior art, fig. 1 is a schematic flow chart of a pipeline arranging method provided by an embodiment of the present invention, as shown in fig. 1, the method includes:
step 110, determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource assemblies or a plurality of resource assemblies and execution sequences among the resource assemblies;
specifically, the graphical pipeline adopts a graphical mode to represent each business process in the software pipeline, and the graphical pipeline template is a general graphical software pipeline corresponding to a specific business scene. Different business scenarios correspond to different graphical pipeline templates. The service scenes comprise development scenes, test scenes, release scenes and the like in the software development process.
The graphical pipeline template comprises a plurality of resource components or a plurality of resource components and execution sequences among the resource components. Wherein, a resource component is a unit for completing a certain function in software. The resource component may be a component that includes a single business function or may be a component that includes multiple business functions. When a certain service function needs to be realized, if a resource component for directly realizing the service function exists, the corresponding resource component is directly selected; if not, the current service function can be realized by combining a plurality of existing resource components according to a certain execution sequence. Different resource components implement business functions within a particular business context. The execution order is the logical order of the resource components during the software run.
The graphics pipeline template may include several resource components. And if the graphical pipeline template is determined according to the service scene, and the resource assemblies in the template can realize the service function, directly selecting the corresponding resource assemblies to realize the service function. For example, if the preparation of the software compiling environment needs to be realized, the compiling environment component in the graphical pipeline template is directly selected for setting and preparing the compiling environment.
The graphical pipeline template may also include a number of resource components and an execution order between the resource components. Wherein, a plurality of resource assemblies in the template can not directly realize the service function, and can be realized only by combining. For example, if the application update of the software needs to be realized, a compiling environment component, a code downloading component, a code compiling component, a mirror image constructing component, a mirror image updating component and a starting test component in the graphical pipeline template are selected, and all resource components are combined according to a certain execution sequence, so that the application update of the software is realized.
Step 120, determining the execution parameters of each resource component;
specifically, the execution parameter of the resource component is a condition parameter that needs to be configured when the resource component operates. Because each resource assembly in the graphical pipeline template provides a universal arrangement basis, the execution parameters in the resource assemblies can be set or modified according to the initial setting parameters and/or the actual operation parameters of the pipeline.
Step 130, determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
Specifically, the graphical pipeline is determined in a relatively intuitive manner by the execution parameters based on the graphical pipeline template and the resource components in the graphical pipeline template. Resource components in the graphical pipeline template facilitate a user to combine in a drag and drop manner according to the execution sequence between the resource components. The function modification of the resource components is realized by modifying the execution parameters of the resource components, so that the resource components realize different execution functions.
Fig. 2 is a schematic diagram of an interface of a pipeline graphical layout provided in an embodiment of the present invention, and as shown in fig. 2, the layout area of the graphically-arranged interface is divided into four modules: tool area (top), control area (left), canvas area (middle), configuration area (right). The pipeline graphical layout interface provided by the embodiment of the invention adopts Jenkins Papieline code to compile scripts.
The tool area is an area where the global function button is located, such as save, import, export, undo, restore, automatic layout, and the like. The control area is an area where the resource assembly is located, a certain resource assembly can be added to the canvas area in a mode of dragging the area assembly, and meanwhile, the configuration item of the assembly is displayed in the configuration area and comprises an execution parameter. The canvas area is a production line display area, after the resource components are dragged to the canvas area, the resource components can be moved and zoomed, and the execution sequence of the resource components is adjusted by establishing a connection line between the resource components. The configuration area is used for showing configuration items corresponding to the selected resource assemblies in the canvas area and showing prompt information of the configuration items which need to be filled.
The layout area is an imaging pipeline template corresponding to a certain service scene, the imaging pipeline template comprises 6 resource components and an execution sequence among the resource components, wherein the resource components are stage execution components. And modifying the resource assembly and the execution sequence between the resource assemblies by means of dragging and connecting. For a specific resource component, the execution parameters of the resource component can be set by the corresponding configuration items in the configuration area.
The assembly line arranging method provided by the embodiment of the invention determines the graphical assembly line by determining the graphical assembly line template corresponding to the service scene to be arranged and the execution parameters of each resource component in the graphical assembly line template, selects the corresponding graphical assembly line template according to different service scenes, and carries out assembly line arrangement by using a graphical arranging mode without a user mastering professional assembly line arranging grammar knowledge, thereby reducing the technical threshold and the maintenance cost of software assembly line maintenance and improving the software development efficiency.
Based on the above embodiment, the method further comprises:
if the graphical assembly line template corresponding to the service scene to be arranged is not obtained, determining a plurality of resource components corresponding to the service scene to be arranged, an execution sequence among the resource components and execution parameters of each resource component;
and determining a graphical pipeline based on a plurality of resource components corresponding to the service scene to be arranged, the execution sequence among the resource components and the execution parameters of each resource component.
Specifically, if the graphical pipeline template corresponding to the service scene to be arranged is not obtained, the corresponding resource component can be determined through the operation of the user, and the graphical pipeline arrangement is performed. Selecting a plurality of resource components required to be used through an actual service scene, and setting the execution sequence among the resource components and the execution parameters of each resource component according to the service scene.
The arrangement process of the assembly line is carried out in a graphical mode, and a user does not need to learn professional assembly line arrangement grammar knowledge.
The pipeline arrangement method provided by the embodiment of the invention can enable a user to carry out arrangement of the graphical pipeline according to the software development service requirement, and provides great flexibility for the user.
Based on any of the above embodiments, step 110 includes:
selecting a graphical pipeline template corresponding to a service scene to be arranged from a preset graphical pipeline template library;
the preset graphical pipeline template library comprises a plurality of preset graphical pipeline templates and/or a plurality of user-defined graphical pipeline templates.
In particular, the preset graphical pipeline template library provides convenience for users. The software pipeline can be created based on templates in a preset graphic pipeline template library, and the templates guide a user to input necessary filling parameters of each resource component.
The preset graphical pipeline template library comprises a plurality of preset graphical pipeline templates and/or a plurality of user-defined graphical pipeline templates.
And presetting a graphical pipeline template as a pipeline template corresponding to a mainstream scene in the software development process. For example, the application issuing of the corresponding preset graphical pipeline template includes code detection, compiling and packaging, mirror image construction, application updating, test case starting, mirror image issuing and the like. The application publishing pipeline can be directly created according to a preset graphical pipeline template.
And the user-defined graphical pipeline template is a graphical pipeline template created by the user. The user-defined graphical assembly line template is added into the preset graphical assembly line template library, convenience is provided for software development, testing and deployment of the same category, and working time is shortened.
According to the pipeline arrangement method provided by the embodiment of the invention, the preset graphical pipeline template library is provided, and the software development template is directly created, so that the software development efficiency is improved, and the error rate is reduced.
Based on any of the above embodiments, step 130 includes:
adjusting a plurality of resource assemblies in the graphical pipeline template and an execution sequence among the plurality of resource assemblies based on the graphical pipeline template and the execution parameters of each resource assembly in the graphical pipeline template;
and determining the graphical pipeline based on each resource component in the adjusted graphical pipeline template and the execution parameters thereof and the execution sequence among each resource component.
Specifically, the software pipeline can be directly created according to a preset graphical pipeline template. The types and the number of the resource components in the graphical pipeline template, and the execution sequence among the resource components do not completely fit the current service scene.
The type and number of resource components in the current graphical pipeline template and the execution sequence between the resource components can be adjusted according to the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template to adapt to the current service scenario.
And determining the graphical pipeline according to each resource component in the adjusted graphical pipeline template and the execution parameters thereof and the execution sequence among each resource component.
The following is illustrated by way of example. In the embodiment shown in fig. 2, the canvas area is an execution sequence among a graphical pipeline template corresponding to a certain service scene, 6 resource components of the graphical pipeline template, and the resource components.
In the graphical pipeline template, the resource assembly corresponding to the stage 6 is connected with the resource assembly corresponding to the stage 5, and the execution sequence is executed after the resource assembly corresponding to the stage 5. Depending on the actual traffic scenario, phase 6 should be executed at the same time as phase 1, and phase 6 has no logical association with phase 5. Therefore, the time item in the execution parameters in the resource component corresponding to the phase 6 is adjusted to the same execution time as the phase 1, and the connection between the phase 6 and the phase 5 is removed. The determined graphics pipeline is shown in the canvas area in FIG. 2.
Based on any of the above embodiments, step 130 further includes:
and determining a configuration script corresponding to the graphical pipeline based on the graphical pipeline.
Specifically, when the graphical layout is performed based on the graphical pipeline, a configuration script corresponding to the graphical pipeline may be generated.
For example, the parameters of the resource component can be configured after the resource component is dragged into the layout area, or the resource component can be switched to the script mode for editing, and when the resource component is switched to the script mode, the configuration script template is directly generated, only the execution parameters need to be input, so that a user can conveniently and quickly understand the service to be realized by the assembly line, and the maintenance cost is greatly reduced.
Based on any of the embodiments, determining a configuration script corresponding to the graphical pipeline based on the graphical pipeline specifically includes:
and if the execution parameters of the resource component in the graphic pipeline pass the verification, determining the configuration script corresponding to the graphic pipeline.
Specifically, in order to reduce the increase of software maintenance cost caused by misoperation of a user, the execution parameters of the resource component in the graphical pipeline need to be checked to generate the corresponding configuration script. The checked content includes syntax error, keyword error, parameter matching and the like. The verification mode may be manual verification or verification may be performed according to a preset rule in the background of the system, which is not specifically limited in the embodiment of the present invention.
Based on any one of the above embodiments, the graphics pipeline and its corresponding configuration script can be converted into each other.
Specifically, a graphical pipeline and a configuration script switching button are arranged, and data input by a user are carried during conversion. Configuration of execution parameters for a resource component in a graphics pipeline may be accomplished through a form.
In the graphical arrangement, a configuration mode of form configuration or script configuration is provided, so that a user can carry out autonomous configuration according to own preference. When the editing mode is switched, the data input by the user is carried for conversion, so that a new user can conveniently and quickly get familiar with the software assembly line, and meanwhile, the data of the user is guaranteed not to be lost.
Based on any of the above embodiments, the execution order among the resource components includes at least one of serial, parallel, and aggregate.
In particular, when using a graphical orchestration pipeline, the order of execution between resource components needs to be determined. The execution order between resource components includes at least one of serial, parallel, and aggregate. The execution sequence may be determined according to different service scenarios, which is not specifically limited in the embodiment of the present invention.
When the execution order is serial, execution of the next resource component follows execution of the previous resource component. For example, in the embodiment shown in fig. 2, the resource component corresponding to phase 2 only issues one connection line, and the connection terminal is the resource component corresponding to phase 3, which means that phase 3 is executed after phase 2 is executed.
When the execution order is parallel, execution of at least two resource components is simultaneous. Parallel execution includes both cases, one in which at least two resource components are commonly connected to the same resource component, after the same resource component execution sequence. For example, in the embodiment shown in fig. 2, the resource component corresponding to phase 1 issues two connection lines, and connects the resource components corresponding to phase 2 and phase 4, respectively, and after phase 1 is executed, it indicates that phase 2 and phase 4 are executed concurrently. In another case, at least two resource components are independent and not contiguous. For example, in the embodiment shown in fig. 2, the resource component corresponding to phase 1 is not connected to the resource component corresponding to phase 6, which means that phase 1 and phase 6 are executed concurrently.
When the execution sequence is aggregation, at least two resource components send out connection lines to the same resource component, and the execution sequence of the same resource component is executed after all the resource components connected with the same resource component are executed. For example, in the embodiment shown in fig. 2, the resource assemblies corresponding to the phases 3 and 4 are aggregated to the resource assembly corresponding to the phase 5, which means that the phase 5 is executed after the execution of both the phases 3 and 4 is finished.
The pipeline arranging method provided by the embodiment of the invention allows a user to flexibly execute different resource components or resource component sets, and meets the requirements of the user on executing different processes in different scenes.
In any of the above embodiments, the execution parameters of each resource component are determined based on at least one of resource component build parameters, user-defined parameters, and pipeline execution process parameters.
Specifically, the execution parameters of each resource component can be set according to resource component construction parameters, that is, resource component initialization parameters, or according to user-defined parameters, or according to operating parameters of software in the execution process under different scenes. The operation parameters comprise intermediate variables, constants and the like generated in the software execution process. Different scenes comprise a software development scene, a software testing scene, a software release scene and the like.
According to the pipeline arrangement method provided by the embodiment of the invention, the configuration of the execution parameters is provided for the resource assembly, so that the requirements of a user for executing different processes in different scenes can be met under the condition of not modifying the topological structure of the graphical pipeline.
Based on any of the above embodiments, fig. 3 is a schematic structural diagram of a pipeline arranging apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes:
a template determining unit 310, configured to determine a graphical pipeline template corresponding to a service scenario to be arranged, where the graphical pipeline template includes a plurality of resource components, or includes a plurality of resource components and an execution sequence between the resource components;
a parameter determining unit 320, configured to determine an execution parameter of each resource component;
the graphics determining unit 330 determines a graphics pipeline based on the graphics pipeline template and the execution parameters of each resource component in the graphics pipeline template.
Specifically, the template determining unit 310 is configured to determine a graphical pipeline template corresponding to a service scene to be scheduled. The graphical assembly line adopts a graphical mode to represent each service flow in the software assembly line, and the graphical assembly line template is a general graphical software assembly line corresponding to a specific service scene.
The graphical pipeline template comprises a plurality of resource components or a plurality of resource components and execution sequences among the resource components. Wherein, a resource component is a unit for completing a certain function in software. The resource component may be a component that includes a single business function or may be a component that includes multiple business functions. Different resource components implement business functions within a particular business context. When a certain service function needs to be realized, if a resource component for directly realizing the service function exists, the corresponding resource component is directly selected; if not, the current service function can be realized by combining a plurality of existing resource components according to a certain execution sequence. The execution order is the logical order of the resource components during the software run.
A parameter determining unit 320, configured to determine an execution parameter of each resource component. The execution parameters of the resource component are condition parameters which need to be configured when the resource component works.
The graphical determining unit 330 is configured to determine the graphical pipeline in a relatively intuitive manner by using the graphical pipeline template and the execution parameters of the resource components in the graphical pipeline template.
The assembly line arranging device provided by the embodiment of the invention determines the graphical assembly line by determining the graphical assembly line template corresponding to the service scene to be arranged and the execution parameters of each resource component in the graphical assembly line template, selects the corresponding graphical assembly line template according to different service scenes, and carries out assembly line arrangement by using a graphical arranging mode, so that a user does not need to master professional assembly line arranging grammar knowledge, the technical threshold and the maintenance cost of software assembly line maintenance are reduced, and the software development efficiency is improved.
Based on any embodiment above, the apparatus further comprises:
the user-defined unit is used for determining a plurality of resource components corresponding to the service scene to be arranged, an execution sequence among the resource components and execution parameters of each resource component if the graphical assembly line template corresponding to the service scene to be arranged is not obtained;
and determining a graphical pipeline based on a plurality of resource components corresponding to the service scene to be arranged, the execution sequence among the resource components and the execution parameters of each resource component.
Based on any of the above embodiments, the template determining unit 310 is specifically configured to:
selecting a graphical pipeline template corresponding to a service scene to be arranged from a preset graphical pipeline template library;
the preset graphical pipeline template library comprises a plurality of preset graphical pipeline templates and/or a plurality of user-defined graphical pipeline templates.
Based on any of the above embodiments, the graphical determining unit 330 is specifically configured to:
adjusting a plurality of resource assemblies in the graphical pipeline template and an execution sequence among the plurality of resource assemblies based on the graphical pipeline template and the execution parameters of each resource assembly in the graphical pipeline template;
and determining the graphical pipeline based on each resource component in the adjusted graphical pipeline template and the execution parameters thereof and the execution sequence among each resource component.
Based on any embodiment above, the apparatus further comprises:
and the script determining unit is used for determining a configuration script corresponding to the graphical pipeline based on the graphical pipeline.
Based on any of the embodiments above, the script determining unit is specifically configured to:
and if the execution parameters of the resource component in the graphic pipeline pass the verification, determining the configuration script corresponding to the graphic pipeline.
Based on any one of the above embodiments, the graphics pipeline and its corresponding configuration script can be converted into each other.
Based on any of the above embodiments, the execution order among the resource components includes at least one of serial, parallel, and aggregate.
In any of the above embodiments, the execution parameters of each resource component are determined based on at least one of resource component build parameters, user-defined parameters, and pipeline execution process parameters.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device may include: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logical commands in the memory 430 to perform the following method:
determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and an execution sequence among the resource components; determining execution parameters of each resource component; and determining the graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
In addition, the logic commands in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes:
determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and an execution sequence among the resource components; determining execution parameters of each resource component; and determining the graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for pipelining, comprising:
determining a graphical pipeline template corresponding to a service scene to be arranged, wherein the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and execution sequences among the resource components;
determining execution parameters of each resource component;
and determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
2. The pipeline orchestration method of claim 1, further comprising:
if the graphical assembly line template corresponding to the service scene to be arranged is not obtained, determining a plurality of resource components corresponding to the service scene to be arranged, an execution sequence among the resource components and execution parameters of each resource component;
and determining a graphical pipeline based on a plurality of resource components corresponding to the service scene to be arranged, the execution sequence among the resource components and the execution parameters of each resource component.
3. The pipeline orchestration method according to claim 1, wherein the determining a graphical pipeline template corresponding to the service scene to be orchestrated comprises:
selecting a graphical pipeline template corresponding to the service scene to be arranged from a preset graphical pipeline template library;
the preset graphical pipeline template library comprises a plurality of preset graphical pipeline templates and/or a plurality of user-defined graphical pipeline templates.
4. The pipeline orchestration method of claim 1, wherein determining a graphical pipeline based on the graphical pipeline template and execution parameters of each resource component in the graphical pipeline template comprises:
adjusting a plurality of resource components in the graphical pipeline template and an execution sequence among the plurality of resource components based on the graphical pipeline template and execution parameters of each resource component in the graphical pipeline template;
and determining the graphical pipeline based on each resource component in the adjusted graphical pipeline template and the execution parameters thereof and the execution sequence among each resource component.
5. The pipeline orchestration method according to claim 1 or 4, wherein the determining a graphical pipeline further comprises:
and determining a configuration script corresponding to the graphical pipeline based on the graphical pipeline.
6. The pipelining method of claim 1 or 4, wherein the execution order among the resource components includes at least one of serial, parallel, and aggregate.
7. The pipeline orchestration method of claim 1 or 2, wherein the execution parameters of the respective resource components are determined based on at least one of resource component build parameters, user-defined parameters, and pipeline execution process parameters.
8. A pipelining apparatus, comprising:
the template determining unit is used for determining a graphical pipeline template corresponding to a service scene to be arranged, and the graphical pipeline template comprises a plurality of resource components or a plurality of resource components and an execution sequence among the resource components;
a parameter determining unit, configured to determine an execution parameter of each resource component;
and the graphical determining unit is used for determining a graphical pipeline based on the graphical pipeline template and the execution parameters of each resource component in the graphical pipeline template.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the pipelining method according to one of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the pipeline orchestration method according to any one of claims 1-7.
CN202010475850.2A 2020-05-29 2020-05-29 Pipeline arranging method and device, electronic equipment and storage medium Pending CN111722842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010475850.2A CN111722842A (en) 2020-05-29 2020-05-29 Pipeline arranging method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010475850.2A CN111722842A (en) 2020-05-29 2020-05-29 Pipeline arranging method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111722842A true CN111722842A (en) 2020-09-29

Family

ID=72565334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010475850.2A Pending CN111722842A (en) 2020-05-29 2020-05-29 Pipeline arranging method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111722842A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127368A (en) * 2021-04-30 2021-07-16 中原银行股份有限公司 Method, system and medium for generating assembly line
CN113268332A (en) * 2021-06-09 2021-08-17 北京搜房科技发展有限公司 Continuous integration method and device
CN113434554A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Method and device for constructing continuous integration assembly line
CN114968223A (en) * 2021-12-14 2022-08-30 中国联合网络通信集团有限公司 Pipeline arranging method, device, equipment and storage medium
CN116521363A (en) * 2023-04-06 2023-08-01 中保车服科技服务股份有限公司 Code packaging method, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579851A (en) * 2017-09-14 2018-01-12 郑州云海信息技术有限公司 The method and apparatus for determining the execution sequence of resource layout template
CN109445774A (en) * 2018-10-24 2019-03-08 北京奇虎科技有限公司 Method for processing business and device based on pelization operation
US10318285B1 (en) * 2017-08-16 2019-06-11 Amazon Technologies, Inc. Deployment of infrastructure in pipelines
CN110244951A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Using dissemination method and device
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110297625A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 The processing method and processing device of application
CN110502349A (en) * 2018-05-16 2019-11-26 北京理工大学 A kind of method of combination of building cloud container application
CN110543301A (en) * 2019-09-06 2019-12-06 中国工商银行股份有限公司 Method and device for generating jenkins code file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10318285B1 (en) * 2017-08-16 2019-06-11 Amazon Technologies, Inc. Deployment of infrastructure in pipelines
CN107579851A (en) * 2017-09-14 2018-01-12 郑州云海信息技术有限公司 The method and apparatus for determining the execution sequence of resource layout template
CN110244951A (en) * 2018-03-09 2019-09-17 阿里巴巴集团控股有限公司 Using dissemination method and device
CN110297625A (en) * 2018-03-22 2019-10-01 阿里巴巴集团控股有限公司 The processing method and processing device of application
CN110502349A (en) * 2018-05-16 2019-11-26 北京理工大学 A kind of method of combination of building cloud container application
CN109445774A (en) * 2018-10-24 2019-03-08 北京奇虎科技有限公司 Method for processing business and device based on pelization operation
CN110286884A (en) * 2019-06-21 2019-09-27 北京百度网讯科技有限公司 Micro services method of combination, device, equipment and computer readable storage medium
CN110543301A (en) * 2019-09-06 2019-12-06 中国工商银行股份有限公司 Method and device for generating jenkins code file

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127368A (en) * 2021-04-30 2021-07-16 中原银行股份有限公司 Method, system and medium for generating assembly line
CN113268332A (en) * 2021-06-09 2021-08-17 北京搜房科技发展有限公司 Continuous integration method and device
CN113434554A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Method and device for constructing continuous integration assembly line
CN114968223A (en) * 2021-12-14 2022-08-30 中国联合网络通信集团有限公司 Pipeline arranging method, device, equipment and storage medium
CN114968223B (en) * 2021-12-14 2024-05-17 中国联合网络通信集团有限公司 Pipeline arrangement method, device, equipment and storage medium
CN116521363A (en) * 2023-04-06 2023-08-01 中保车服科技服务股份有限公司 Code packaging method, computer equipment and storage medium
CN116521363B (en) * 2023-04-06 2024-01-30 中保车服科技服务股份有限公司 Code packaging method, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111722842A (en) Pipeline arranging method and device, electronic equipment and storage medium
CN106600238B (en) Method and device for realizing network service opening based on Activiti process engine
CN111080170B (en) Workflow modeling method and device, electronic equipment and storage medium
CN108958736A (en) Page generation method, device, electronic equipment and computer-readable medium
CN106021102B (en) The generation method and device of automatic test file
CN104679488A (en) Flow path customized development platform and method
CN104615541A (en) Simulation testing modeling system and method based on flow chart
CN101957745A (en) Method for converting ladder diagram language into structure text language
CN106095376B (en) A kind of implementation method of quick configuration monitoring picture
CN103984818A (en) AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
CN111124636A (en) Process arrangement engine and control method thereof
CN109901830B (en) Signal configuration method and system for scada system development
CN112130951A (en) AI-based RPA flow generation end flow generation method, equipment and storage medium
CN109446082B (en) Multithreading test flow project configuration system
CN111538498A (en) Application creation method and device, electronic equipment and storage medium
CN114385816A (en) Conversation flow mining method and device, electronic equipment and computer storage medium
US10303331B2 (en) Live mobile application visual editor demo
CN114070741B (en) Topology graph generation method, system, equipment and storage medium
CN110687921B (en) Unmanned aerial vehicle flight control method and device, electronic equipment and storage medium
CN117112262A (en) Visual configuration method and device for event processing flow
US20150350007A1 (en) An interface for creating a plan artifact
CN115344248A (en) RPA development field editing diversification method
CN114663177A (en) State change control method, device, electronic equipment and storage medium
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination