可视化创建流水线后端代码

This commit is contained in:
moshenglv
2021-01-12 10:23:26 +08:00
parent 2f140d13f0
commit 77529319a1
23 changed files with 1147 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
json.id pipeline_stage_step.id
json.step_name pipeline_stage_step.step_name
json.stage_id pipeline_stage_step.stage_id
json.template_id pipeline_stage_step.template_id
json.show_index pipeline_stage_step.show_index
json.content pipeline_stage_step.content
json.created_at pipeline_stage_step.created_at
json.updated_at pipeline_stage_step.updated_at

View File

@@ -0,0 +1,8 @@
json.id pipeline_stage.id
json.stage_name pipeline_stage.stage_name
json.stage_type pipeline_stage.stage_type
json.pipeline_id pipeline_stage.pipeline_id
json.show_index pipeline_stage.show_index
json.created_at pipeline_stage.created_at
json.updated_at pipeline_stage.updated_at

View File

@@ -0,0 +1,9 @@
json.id pipeline.id
json.pipeline_name pipeline.pipeline_name
json.pipeline_status pipeline.pipeline_status
json.file_name pipeline.file_name
json.created_at pipeline.created_at
json.updated_at pipeline.updated_at
json.stages pipeline.pipeline_stages do |pipeline_stage|
json.partial! "/ci/pipeline_stages/list", pipeline_stage: pipeline_stage
end

View File

@@ -0,0 +1 @@
json.content @yaml

View File

@@ -0,0 +1,3 @@
json.pipelines @pipelines do |pipeline|
json.partial! "/ci/pipelines/list", pipeline: pipeline
end

View File

@@ -0,0 +1,3 @@
json.stages @pipeline_stages do |pipeline_stage|
json.partial! "/ci/pipeline_stages/list", pipeline_stage: pipeline_stage
end

View File

@@ -0,0 +1,3 @@
json.steps @pipeline_stage_steps do |pipeline_stage_step|
json.partial! "/ci/pipeline_stage_steps/list", pipeline_stage_step: pipeline_stage_step
end

View File

@@ -0,0 +1,8 @@
json.id template.id
json.template_name template.template_name
json.stage_type template.stage_type
json.category template.category
json.content template.content
json.created_at template.created_at
json.updated_at template.updated_at

View File

@@ -0,0 +1,4 @@
json.category category
json.templates templates do |template|
json.partial! "/ci/templates/list", template: template
end

View File

@@ -0,0 +1,3 @@
json.templates @templates do |template|
json.partial! "/ci/templates/list", template: template
end

View File

@@ -0,0 +1,3 @@
json.array! @category_templates do |category, templates|
json.partial! "/ci/templates/templates_by_stage", category: category, templates: templates
end