CN111399814A - Visual arrangement method and device for construction tasks - Google Patents

Visual arrangement method and device for construction tasks Download PDF

Info

Publication number
CN111399814A
CN111399814A CN202010156746.7A CN202010156746A CN111399814A CN 111399814 A CN111399814 A CN 111399814A CN 202010156746 A CN202010156746 A CN 202010156746A CN 111399814 A CN111399814 A CN 111399814A
Authority
CN
China
Prior art keywords
task
construction
definition
configuration
build
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
CN202010156746.7A
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.)
Postal Savings Bank of China Ltd
Original Assignee
Postal Savings Bank of China 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 Postal Savings Bank of China Ltd filed Critical Postal Savings Bank of China Ltd
Priority to CN202010156746.7A priority Critical patent/CN111399814A/en
Publication of CN111399814A publication Critical patent/CN111399814A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The invention discloses a method and a device for constructing task visual arrangement, and belongs to the technical field of computers. The method comprises the following steps: generating a configuration file of a construction task according to the construction definition; calling configuration parameters according to the configuration files, and creating corresponding construction tasks according to the configuration parameters; and calling a preset script of the construction task, and executing the construction task. The method realizes the rapid definition, the front-end visual configuration and the flexible arrangement combination of the construction task in a template and configuration mode, gets rid of the limitation of scripts in the traditional technology, realizes the continuous integration of a plurality of environments or a plurality of applications and the streamline work definition and execution of the continuous delivery, and improves the continuous delivery efficiency of the construction task.

Description

Visual arrangement method and device for construction tasks
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for constructing task visual arrangement.
Background
DevOps, integrated with cultural ideas, practices and tools, can improve the ability of organizations to deliver applications and services at high speeds, which enables organizations to better serve their customers and to more efficiently participate in competition in the marketplace, helping organizations develop and improve products faster than using traditional software development and infrastructure management processes.
Continuous integration is a software development practice, in which developers periodically incorporate their code changes into a central repository, after which the system automatically runs build and test operations. The primary goals of persistent integration are to discover and resolve errors faster, improve software quality, and reduce the time required to validate and release new software updates. Continuous delivery is also another important software development practice by which systems can automatically build and test code changes and prepare them for release to the production environment. The persistent delivery may deploy all code changes into the test environment and/or the production environment after the build phase, thereby enabling an extension to persistent integration. When the persistent delivery is properly implemented, the developer will always be able to obtain a deployment-ready build artifact that has passed the standardized test flow.
Continuous delivery is represented by Jenkins software, by which the building, testing, and deployment of software products during delivery is accomplished. Jenkins Pipeline is a workflow framework running in Jenkins, tasks of single or multiple nodes running independently can be connected in series, and complex flow arrangement that a single task is difficult to complete is realized, but the method has the following defects: the construction task of Jenkins Pipeline is realized based on a Groovy script, a certain foundation needs to be provided for the Groovy script, the scripted construction task cannot be rapidly and freely combined, and great limitation exists in the aspects of rapid definition and flexible arrangement of the construction task, which will certainly influence the continuous delivery efficiency.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for visually arranging a build task, which implement a quick definition, a front-end visual configuration, and a flexible arrangement combination of the build task in a "template + configuration" manner, get rid of the limitation of scripts in the conventional technology, implement continuous integration of multiple environments or multiple applications, and pipeline job definition and execution of continuous delivery, and improve the efficiency of continuous delivery of the build task.
In one aspect, a method for constructing task visualization arrangement is provided, and the method includes:
generating a configuration file of a construction task according to the construction definition;
calling configuration parameters according to the configuration files, and creating corresponding construction tasks according to the configuration parameters;
and calling a preset script of the construction task, and executing the construction task.
Further, generating a configuration file of the build task according to the build definition includes:
adding construction definition information according to a preset construction definition rule;
selecting corresponding construction task options according to the construction definition information;
and generating a configuration file of the construction task according to a preset construction task configuration rule.
Further, adding the construction definition information according to a preset construction definition rule, comprising:
the front-end construction definition interface encapsulates the basic form components based on Vue technology, and performs front-end form rendering according to the attribute types of the form components through data loading of a database, so as to realize a dynamic form template.
Further, the preset construction definition rules comprise basic information configuration rules, timeout configuration rules, retention policies and/or trigger policies.
Further, calling configuration parameters according to the configuration file, and creating a corresponding construction task according to the configuration parameters, wherein the construction task comprises the following steps:
establishing an association table between the construction task and the configuration parameters;
and creating the construction task according to the configuration parameters and the association table.
Further, the building tasks include pulling code, Maven compilation, and/or unit testing.
Further, creating the build task comprises:
filling in a task name, a task type, a task attribute definition name, a task definition template ID and/or a task attribute field type in a constructed task newly-added interface; and/or the construction task is Jenkins Pipeline Job.
Further, calling a preset script of the construction task, and executing the construction task, wherein the preset script comprises:
and configuring a corresponding Groovy script for the construction task, and defining an implementation method of the Groovy script.
Further, the method further comprises:
and combining the building tasks according to the execution relation to form a continuous delivery pipeline, and simultaneously storing the added building tasks into a pipeline table according to the execution sequence.
In another aspect, a build task visualization orchestration device is provided, comprising:
a configuration file generation module to: generating a configuration file of a construction task according to the construction definition;
a build task creation module to: calling configuration parameters according to the configuration files, and creating corresponding construction tasks according to the configuration parameters;
and the construction task execution module is used for calling the preset script of the construction task and executing the construction task.
Further, the configuration file generating module is configured to:
adding construction definition information according to a preset construction definition rule;
selecting corresponding construction task options according to the construction definition information;
and generating a configuration file of the construction task according to a preset construction task configuration rule.
Further, adding the construction definition information according to a preset construction definition rule, comprising:
the front-end construction definition interface encapsulates the basic form components based on Vue technology, and performs front-end form rendering according to the attribute types of the form components through data loading of a database, so as to realize a dynamic form template.
Further, the preset construction definition rules comprise basic information configuration rules, timeout configuration rules, retention policies and/or trigger policies.
Further, the build task creation module is configured to:
establishing an association table between the construction task and the configuration parameters;
and creating the construction task according to the configuration parameters and the association table.
Further, the building tasks include pulling code, Maven compilation, and/or unit testing.
Further, creating the build task comprises:
filling in a task name, a task type, a task attribute definition name, a task definition template ID and/or a task attribute field type in a constructed task newly-added interface; and/or the construction task is Jenkins Pipeline Job.
Further, the build task execution module is configured to:
and configuring a corresponding Groovy script for the construction task, and defining an implementation method of the Groovy script.
Further, the apparatus further comprises a build task combining module configured to:
and combining the building tasks according to the execution relation to form a continuous delivery pipeline, and simultaneously storing the added building tasks into a pipeline table according to the execution sequence.
The construction task visual arrangement method and device provided by the embodiment of the invention have the following beneficial effects:
1. the method comprises the steps that the quick definition of a construction task is realized in a template + configuration mode, a public step is defined as a construction task template, the construction task is stored and generated in a front-end Web interface through visual configuration related information and exists in a component form, the construction task in the template is modified, the construction task is formed through quick and free combination of the construction task, and the problem that each step needs to be configured in the traditional (such as jenkins) task definition process is solved;
2. the flexible arrangement of the construction tasks is supported, so that continuous integration of a plurality of environments or a plurality of applications and the definition and execution of continuous delivery pipeline operation can be realized, and the continuous delivery efficiency of the construction tasks is improved;
3. in addition, due to the arrangement of the templating and the front-end visualization, a user only needs to simply configure without writing a script, the limitation of the script in the traditional technology is eliminated, the learning cost is low, the popularization is easy, and the applicability is strong.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method for visually arranging construction tasks according to embodiment 1 of the present invention;
FIG. 2 is a flow diagram of sub-steps of step 101 of FIG. 1;
fig. 3 is an example of a front-end interface for adding build definition information provided in embodiment 1 of the present invention;
FIG. 4 is an example of a front-end interface for selecting a corresponding build task option according to build definition information provided in embodiment 1 of the present invention;
FIG. 5 is a flow diagram of sub-steps of step 102 of FIG. 1;
FIG. 6 is an example of a process flow for combining and executing a build task provided in embodiment 1 of the present invention;
fig. 7 is a design idea example of the construction task visualization layout method provided in embodiment 1 of the present invention in a certain Jenkins Pipeline application scenario;
fig. 8 is an example of an implementation process of the method for visually arranging the construction tasks according to the embodiment 1 of the present invention in a certain Jenkins Pipeline application scenario;
fig. 9 is a schematic diagram of a visual arrangement device for building tasks according to embodiment 2 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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 accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
According to the visual arrangement method and device for the construction tasks, the quick definition of the construction tasks is realized in a template + configuration mode, the common steps are defined as the construction task templates, the construction tasks in the templates are modified through front-end visual configuration, the construction tasks are formed through quick and free combination of the construction tasks, the problem that each step needs to be configured in the traditional task definition process is solved, the flexible arrangement of the construction tasks is supported, the continuous integration and continuous delivery assembly line operation definition and execution of multiple environments or multiple applications can be realized, and the continuous delivery efficiency of the construction tasks is improved; in addition, due to the arrangement of the templating and the front-end visualization, a user only needs to simply configure without writing a script, the limitation of the script in the traditional technology is eliminated, the learning cost is low, the popularization is easy, and the applicability is strong.
Therefore, the visual arrangement method and device for the construction tasks provided by the embodiment of the invention are suitable for various application scenes related to quick arrangement (including complex arrangement) and execution and continuous delivery of the construction tasks, are particularly suitable for flexible arrangement of the construction tasks of the DevOps platform based on Jenkins, and can realize templating and configuration of the construction tasks based on open source technologies such as Jenkins, Groovy and Vue and the like and by relying on the design concept of Jenkins Pipeline, and support the flexible combination of the construction tasks into a continuous delivery Pipeline through a visual arrangement mode. Under the application scene, continuous construction of an application system constructed based on Java, C + +, Python and other languages is supported, each construction capability is called a construction task, different construction tasks can be randomly combined to form different continuous delivery pipelines according to different service scenes, the arranging and the series connection of multiple environments are supported, pipelines of different environments are formed, and one-key release to different environments is supported.
The following describes in detail a method and an apparatus for visually arranging a build task according to an embodiment of the present invention with reference to specific embodiments and accompanying drawings.
Example 1
Fig. 1 is a flowchart of a method for visually arranging a build task according to embodiment 1 of the present invention. Fig. 2 is a flow chart of sub-steps of step 101 in fig. 1. Fig. 3 is an example of a front-end interface for adding build definition information provided in embodiment 1 of the present invention. Fig. 4 is an example of a front-end interface for selecting a corresponding build task option according to build definition information provided in embodiment 1 of the present invention. Fig. 5 is a flow diagram of sub-steps of step 102 in fig. 1.
As shown in fig. 1, the method for visually arranging the construction tasks according to the embodiment of the present invention includes the following steps:
101. and generating a configuration file of the construction task according to the construction definition.
Preferably, as shown in fig. 2, the step 101 further includes the following sub-steps:
1011. and adding construction definition information according to a preset construction definition rule.
Here, the preset build definition rule preferably includes a basic information configuration rule, a timeout configuration rule, a retention policy, and/or a trigger policy. The basic information of the construction definition comprises the names of the continuous integration and delivery pipelines, and can be composed of the names of the function modules and the environments for short. In addition, when a new build definition is added, information such as timeout configuration, retention policy, trigger policy and the like can be filled in a new build definition interface and stored, the system stores the information into a build definition table, and the new build definition is successfully added, as shown in fig. 3.
Specifically, the 1011 sub-step may be implemented by the following technical means: the front-end construction definition interface encapsulates the basic form components based on Vue technology, and performs front-end form rendering according to the attribute types of the form components through data loading of a database, so as to realize a dynamic form template. Here, attribute types are form item types, such as textbox type, checkbox type, and so on.
1012. The corresponding build task option is selected according to the build definition information, as shown in FIG. 4.
1013. And generating a configuration file of the construction task according to a preset construction task configuration rule.
It is noted that, the process of step 101 may be implemented in other ways besides the way described in the above steps without departing from the inventive concept, and the specific way is not limited by the embodiments of the present invention.
102. And calling the configuration parameters according to the configuration file, and creating a corresponding construction task according to the configuration parameters.
Preferably, as shown in fig. 5, the step 102 further includes the following sub-steps:
1021. establishing an association table between the construction task and the configuration parameters;
1022. and creating a construction task according to the configuration parameters and the association table.
Preferably, the build task is implemented by:
and filling and storing information such as task names, task types, task attribute definition names, task definition template IDs and/or task attribute field types and the like in a task newly-added construction interface, and storing the information into a task construction table by the system to successfully add the constructed tasks. Preferably, the construction task is Jenkins Pipeline Job. Further preferably, the build tasks include pulling code, Maven compilation, and/or unit testing.
It is noted that, the process of step 102 may be implemented in other ways besides the way described in the above steps without departing from the inventive concept, and the specific way is not limited by the embodiments of the present invention.
103. And calling a preset script of the construction task, and executing the construction task.
Preferably, this step 103 is achieved by:
configuring a corresponding Groovy script for the construction task, and defining an implementation method of the Groovy script.
Illustratively, a background adds a Groovy script of a construction task in a specified directory (stored in a META-INF/pipeline/sites directory of a component package), and defines a specific implementation method in the Groovy script. The script of Groovy is to be placed under the directory named by the task type name, the script name is to be the same as the task template name, the method name in the script is to be similar to the script name, and the stroke is to be underlined. And the method names cannot conflict.
For example:
Figure BDA0002404332080000081
Figure BDA0002404332080000091
if the script name and the system's rename name, the system implementation is overridden. The groovy method provided by jenkins can be directly used, and the method in the common groovy script provided by the system can also be directly used. Other methods in groovy scripts may be referenced using// import _ files ("locations/tools/methods/upload. groovy"), to start from the locations directory.
Figure BDA0002404332080000092
Figure BDA0002404332080000101
Figure BDA0002404332080000111
Figure BDA0002404332080000121
It is to be noted that, the process of step 103 may be implemented in other ways besides the way described in the above steps without departing from the inventive concept, and the specific way is not limited by the embodiments of the present invention.
In addition, preferably, the method for visually arranging the construction tasks according to embodiment 1 of the present invention further includes the following steps:
and combining the building tasks according to the execution relation to form a continuous delivery pipeline, and simultaneously storing the added building tasks into a pipeline table according to the execution sequence.
The execution relation can be that different construction tasks are selected according to different types of projects to complete the arrangement of a whole set of pipelines. For example, for an item of git, the code is first pulled from git, and for an item of svn, the code is first pulled from svn; execution order refers to execution precedence.
Illustratively, a build-defined persistent integration and delivery pipeline is created, and according to the build-defined persistent integration and delivery requirements, delivered products of different applications are different, such as an application of a springboot class, a git pull code task + a maven task, an ant task, or a gradle task can be selected for building, the built product of the git pull code task + a gradle can be used for building for an android application, the built product of the git pull code task + a gradle can be used for building, the built product of the git pull code task + an npm task can be used for building for a front-end application, the built product of the git pull code task + an npm task can be used for building, and the product of the git pull code task is a compiled static file and the like. A persistent delivery pipeline is formed by combining the build tasks in execution relation, while the added build tasks are stored in the pipeline table in execution order. The method supports flexible adjustment of the sequence and the content of the construction tasks in the continuous delivery pipeline, and can generate the expected continuous integration and delivery pipeline through simple and flexible configuration after flexibly combining the required construction tasks.
Fig. 6 is an example of a construction task combination and execution flow provided in embodiment 1 of the present invention. As shown in fig. 6, for applications such as Springboot, flexible combination and collocation can be performed through the following figures, and the combination and collocation are performed in sequence.
Fig. 7 is an example of a design idea of the construction task visualization layout method provided in embodiment 1 of the present invention in a certain Jenkins Pipeline application scenario, and fig. 8 is an example of an implementation process of the construction task visualization layout method provided in embodiment 1 of the present invention in a certain Jenkins Pipeline application scenario, where specific implementation steps may be set or changed according to needs without departing from the inventive concept, that is, the implementation method is not limited to the implementation manners shown in fig. 7 and 8.
Example 2
Fig. 9 is a schematic diagram of a visualization orchestration device for construction tasks according to embodiment 2 of the present invention, and as shown in fig. 9, the visualization orchestration device for construction tasks according to an embodiment of the present invention includes a configuration file generating module 21, a construction task creating module 22, and a construction task executing module 23.
Specifically, the configuration file generating module 21 is configured to: and generating a configuration file of the construction task according to the construction definition. Preferably, the configuration file generating module 21 is configured to: adding construction definition information according to a preset construction definition rule; selecting corresponding construction task options according to the construction definition information; and generating a configuration file of the construction task according to a preset construction task configuration rule. Further preferably, adding the build definition information according to a preset build definition rule includes: the front-end construction definition interface encapsulates the basic form components based on Vue technology, and performs front-end form rendering according to the attribute types of the form components through data loading of a database, so as to realize a dynamic form template. Further preferably, the preset construction definition rule includes a basic information configuration rule, a timeout configuration rule, a retention policy and/or a trigger policy.
A build task creation module 22 for: and calling the configuration parameters according to the configuration file, and creating a corresponding construction task according to the configuration parameters. Preferably, a task creation module 22 is constructed for: establishing an association table between the construction task and the configuration parameters; and creating a construction task according to the configuration parameters and the association table. Further preferably, the build tasks include pulling code, Maven compilation, and/or unit testing. Further preferably, creating the build task comprises: filling in a task name, a task type, a task attribute definition name, a task definition template ID and/or a task attribute field type in a constructed task newly-added interface; and/or, the construction task is Jenkins Pipeline Job.
And the construction task execution module 23 is configured to call a preset script of the construction task and execute the construction task. Preferably, the task execution module 23 is constructed for: configuring a corresponding Groovy script for the construction task, and defining an implementation method of the Groovy script.
Further preferably, the construction task visualization orchestration device provided in embodiment 2 of the present invention further includes a construction task combination module (not shown in the figure), configured to: and combining the building tasks according to the execution relation to form a continuous delivery pipeline, and simultaneously storing the added building tasks into a pipeline table according to the execution sequence.
Compared with the prior art, the construction task visual arrangement method and the device provided by the embodiment of the invention have the following beneficial effects:
1. the method comprises the steps that the quick definition of a construction task is realized in a template + configuration mode, a public step is defined as a construction task template, the construction task is stored and generated in a front-end Web interface through visual configuration related information and exists in a component form, the construction task in the template is modified, the construction task is formed through quick and free combination of the construction task, and the problem that each step needs to be configured in the traditional (such as jenkins) task definition process is solved;
2. the flexible arrangement of the construction tasks is supported, so that continuous integration of a plurality of environments or a plurality of applications and the definition and execution of continuous delivery pipeline operation can be realized, and the continuous delivery efficiency of the construction tasks is improved;
3. in addition, due to the arrangement of the templating and the front-end visualization, a user only needs to simply configure without writing a script, the limitation of the script in the traditional technology is eliminated, the learning cost is low, the popularization is easy, and the applicability is strong.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for constructing task visual arrangement is characterized by comprising the following steps:
generating a configuration file of a construction task according to the construction definition;
calling configuration parameters according to the configuration files, and creating corresponding construction tasks according to the configuration parameters;
and calling a preset script of the construction task, and executing the construction task.
2. The method of claim 1, wherein generating a configuration file for a build task from a build definition comprises:
adding construction definition information according to a preset construction definition rule;
selecting corresponding construction task options according to the construction definition information;
and generating a configuration file of the construction task according to a preset construction task configuration rule.
3. The method of claim 2, wherein adding the build definition information according to preset build definition rules comprises:
the front-end construction definition interface encapsulates the basic form components based on Vue technology, and performs front-end form rendering according to the attribute types of the form components through data loading of a database, so as to realize a dynamic form template.
4. The method according to claim 2 or 3, wherein the preset build definition rules comprise basic information configuration rules, timeout configuration rules, retention policies and/or trigger policies.
5. The method of claim 1, wherein invoking configuration parameters according to the configuration file and creating corresponding build tasks according to the configuration parameters comprises:
establishing an association table between the construction task and the configuration parameters;
and creating the construction task according to the configuration parameters and the association table.
6. The method of claim 5, wherein the build tasks include pull code, Maven compilation, and/or unit testing.
7. The method of claim 5 or 6, wherein creating the build task comprises: filling in a task name, a task type, a task attribute definition name, a task definition template ID and/or a task attribute field type in a constructed task newly-added interface; and/or the construction task is Jenkins Pipeline Job.
8. The method according to claim 1, wherein the step of calling the preset script of the construction task and executing the construction task comprises the following steps:
and configuring a corresponding Groovy script for the construction task, and defining an implementation method of the Groovy script.
9. The method of any one of claims 1, 2, 3, 5, 6, 8, further comprising:
and combining the building tasks according to the execution relation to form a continuous delivery pipeline, and simultaneously storing the added building tasks into a pipeline table according to the execution sequence.
10. A build task visualization orchestration device, comprising:
a configuration file generation module to: generating a configuration file of a construction task according to the construction definition;
a build task creation module to: calling configuration parameters according to the configuration files, and creating corresponding construction tasks according to the configuration parameters;
and the construction task execution module is used for calling the preset script of the construction task and executing the construction task.
CN202010156746.7A 2020-03-09 2020-03-09 Visual arrangement method and device for construction tasks Pending CN111399814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010156746.7A CN111399814A (en) 2020-03-09 2020-03-09 Visual arrangement method and device for construction tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010156746.7A CN111399814A (en) 2020-03-09 2020-03-09 Visual arrangement method and device for construction tasks

Publications (1)

Publication Number Publication Date
CN111399814A true CN111399814A (en) 2020-07-10

Family

ID=71428650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010156746.7A Pending CN111399814A (en) 2020-03-09 2020-03-09 Visual arrangement method and device for construction tasks

Country Status (1)

Country Link
CN (1) CN111399814A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930421A (en) * 2020-07-31 2020-11-13 中电鸿信信息科技有限公司 DevOps-based free layout monitoring system and using method thereof
CN112130972A (en) * 2020-08-24 2020-12-25 北京思特奇信息技术股份有限公司 Task processing method and system
CN112445470A (en) * 2020-11-11 2021-03-05 北京思特奇信息技术股份有限公司 Dynamic rule creating method and system based on newly added scene
CN112685011A (en) * 2020-12-21 2021-04-20 福建新大陆软件工程有限公司 AI application visualization arrangement method based on Vue
CN113238764A (en) * 2021-05-17 2021-08-10 西安点告网络科技有限公司 Software delivery method and system based on DAG graph, electronic device and readable storage medium
CN113313353A (en) * 2021-04-26 2021-08-27 新华三大数据技术有限公司 Continuous delivery pipeline management method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091479A1 (en) * 2012-12-10 2014-06-19 Wibbitz Ltd. A method for automatically transforming text into video
CN104899047A (en) * 2015-06-25 2015-09-09 广州杰赛科技股份有限公司 Webpage frame deployment method and system
CN107423952A (en) * 2017-07-25 2017-12-01 苏州博纳讯动软件有限公司 A kind of expansible DevOps continues delivery system and its method
CN108897547A (en) * 2018-06-27 2018-11-27 北京神州泰岳软件股份有限公司 A kind of software automatic deployment and device
CN109783090A (en) * 2019-01-18 2019-05-21 成都宝瓜科技有限公司 A kind of method for visualizing, device and server for persistently delivering
CN110096304A (en) * 2019-03-16 2019-08-06 平安城市建设科技(深圳)有限公司 Task construction method, device, equipment and storage medium based on Jenkins

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014091479A1 (en) * 2012-12-10 2014-06-19 Wibbitz Ltd. A method for automatically transforming text into video
CN104899047A (en) * 2015-06-25 2015-09-09 广州杰赛科技股份有限公司 Webpage frame deployment method and system
CN107423952A (en) * 2017-07-25 2017-12-01 苏州博纳讯动软件有限公司 A kind of expansible DevOps continues delivery system and its method
CN108897547A (en) * 2018-06-27 2018-11-27 北京神州泰岳软件股份有限公司 A kind of software automatic deployment and device
CN109783090A (en) * 2019-01-18 2019-05-21 成都宝瓜科技有限公司 A kind of method for visualizing, device and server for persistently delivering
CN110096304A (en) * 2019-03-16 2019-08-06 平安城市建设科技(深圳)有限公司 Task construction method, device, equipment and storage medium based on Jenkins

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张敔等: "《中文版Visual FoxPro 5.0从入门到精通》", 30 November 1998, 北京:航空工业出版社, pages: 207 - 210 *
自动化软件测试微信公众号: ""基于Jenkins+Docker+Git 的CI流程初探"" *
自动化软件测试微信公众号: ""基于Jenkins+Docker+Git"的CI流程初探" *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930421A (en) * 2020-07-31 2020-11-13 中电鸿信信息科技有限公司 DevOps-based free layout monitoring system and using method thereof
CN112130972A (en) * 2020-08-24 2020-12-25 北京思特奇信息技术股份有限公司 Task processing method and system
CN112445470A (en) * 2020-11-11 2021-03-05 北京思特奇信息技术股份有限公司 Dynamic rule creating method and system based on newly added scene
CN112445470B (en) * 2020-11-11 2023-11-07 北京思特奇信息技术股份有限公司 Dynamic rule creation method and system based on newly added scene
CN112685011A (en) * 2020-12-21 2021-04-20 福建新大陆软件工程有限公司 AI application visualization arrangement method based on Vue
CN112685011B (en) * 2020-12-21 2022-06-07 福建新大陆软件工程有限公司 AI application visualization arrangement method based on Vue
CN113313353A (en) * 2021-04-26 2021-08-27 新华三大数据技术有限公司 Continuous delivery pipeline management method and device
CN113238764A (en) * 2021-05-17 2021-08-10 西安点告网络科技有限公司 Software delivery method and system based on DAG graph, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN111399814A (en) Visual arrangement method and device for construction tasks
US9158510B2 (en) System and computer program product for creating a telecommunications application
CN106775744B (en) Method and device for generating static library
Sandobalin et al. An infrastructure modelling tool for cloud provisioning
US20180113799A1 (en) Model generation for model-based application testing
US20090132220A1 (en) Method For Creating A Telecommunications Application
US20230236809A1 (en) Ios application program construction method and apparatus, electronic device, and storage medium
CN110928529A (en) Method and system for assisting operator development
KR20200115020A (en) Hyperledger fabric network creation method, controller and storage medium
CN113805882A (en) Method and device for developing application program, electronic equipment and storage medium
US20150143267A1 (en) SYSTEM AND METHOD FOR DEVELOPING A RULE-BASED EVENT-DRIVEN MULTI-LAYERED FRONTEND FOR BUSINESS SERVICES AND RENDERING THE GUIs ON MULTIPLE CLIENT DEVICES
Gürcan et al. Using Microsoft PowerApps, Mendix and OutSystems in two development scenarios: an experience report
CN107193565B (en) Method for developing native APP (application) across mobile terminals
KR20150133902A (en) System and method for developing of service based on software product line
CN114265595B (en) Cloud native application development and deployment system and method based on intelligent contracts
US11789712B2 (en) Data configuration deployment framework
US20200366743A1 (en) Megamodel driven process enactment
US20080155492A1 (en) Development tool for creating converged applications that include sip and web components
CN112506943B (en) Heterogeneous data service providing method, device, equipment and medium
US9727311B2 (en) Generating a service definition including a common service action
CN115098082A (en) Production line script generation method, system, equipment and medium based on Jenkins plug-in
CN111562942B (en) Gitlab-based mobile APP continuous integration device and method
CN114201174A (en) Construction method and device of hybrid mobile application, electronic equipment and storage medium
CN113282332A (en) Operation and maintenance processing method and device
CN112181403A (en) Development, operation and maintenance integration realization method, device and equipment and readable 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