Method for automatically generating yaml script based on assembly line

An automatic generation and assembly line technology, applied in version control, program code conversion, software maintenance/management, etc., can solve the problems of untimely construction and deployment, error-prone writing, time-consuming and laborious script configuration, etc., to improve development and release efficiency, The effect of reducing work intensity

Active Publication Date: 2020-12-22
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a method for automatically generating yaml scripts based on pipelines, in order to solve the problems...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically generating yaml script based on assembly line
  • Method for automatically generating yaml script based on assembly line
  • Method for automatically generating yaml script based on assembly line

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] according to figure 1 As shown, according to an embodiment of the present invention, this embodiment discloses a method for automatically generating a pipeline-based yaml script, and the specific implementation method includes the following steps:

[0023] Step 1: Configure different templates, use JSON and JSONnet to write pipeline configuration and user parameter configuration, which can be called by different project types maven, golang, and vue;

[0024] Step 2: Create a pipeline, configure warehouse, template and image information, and generate pipeline parameters;

[0025] 1) Method: Get

[0026] address:

[0027] http: / / api.pipeline-backend-dev.matrixcloud.io / api / v1 / repo / user / {user} / namespaces

[0028] Parameter rules: user is a required item, and the user's login account is generally the prefix of Changhong mailbox.

[0029] Through the GET method, get the list of Git library names owned by the specified login user.

[0030] 2) Method: Post

[0031] addres...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for automatically generating a yaml script based on an assembly line, and belongs to the technical field of automatic generation of yaml configuration files. The method comprises the following steps: configuring a template: compiling assembly line configuration and user parameter configuration by using json and jsonet, wherein the assembly line configuration and the user parameter configuration are used for calling maven, golang and vue of different engineering types; creating the assembly line, configuring a warehouse, a template and mirror image information,and generating assembly line parameters; analyzing the configured template parameter content by a front end, and automatically generating the yaml file; and initiating the construction of the generated yaml file on a drone platform, and verifying the correctness of the yaml script content. According to the method for automatically generating the yaml script based on the assembly line, developers or operation and maintenance personnel do not need to use development tools or manually compile configuration files any more, so that the work intensity of compiling the configuration scripts by project managers or operation and maintenance personnel is reduced, and the development and release efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of automatically generating yaml configuration files, and more specifically relates to a method for automatically generating yaml scripts based on pipelines. Background technique [0002] The completion of a code project is usually completed by several teams or multiple team members. It needs to be integrated at least once a day. Facing the requirements of short project cycle, high code quality requirements, fast iteration, and fast online launch, write configuration file scripts to complete Project deployment is an essential and extremely important link. Whether the script configuration is correct or not is extremely important to the deployment and function usage of the product. At present, the operation and maintenance or project administrators have the following problems in the script configuration process: [0003] 1) Script writing is inefficient and error-prone; [0004] 2) Script generation is not ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/41G06F8/71
CPCG06F8/41G06F8/71
Inventor 刘琴琴
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products