From d4ee34b7f89d189075a882e615edb36dde0bf49f Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 17 Jun 2026 10:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=90=8E=E4=BF=9D=E5=AD=98json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/projects/pipelines_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/v1/projects/pipelines_controller.rb b/app/controllers/api/v1/projects/pipelines_controller.rb index eafe67a74..4b6974d8d 100644 --- a/app/controllers/api/v1/projects/pipelines_controller.rb +++ b/app/controllers/api/v1/projects/pipelines_controller.rb @@ -103,7 +103,10 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController @pipeline.branch = branch @pipeline.is_graphic_design = params[:pipeline_type] == 2 ? true : false @pipeline.pipeline_type = params[:pipeline_type] if params[:pipeline_type].present? - @pipeline.json = params[:pipelineTemplateJson] if params[:pipelineTemplateJson].present? + if params[:pipelineTemplateJson].present? + @pipeline.json = params[:pipelineTemplateJson] + @pipeline.yaml = build_pipeline_yaml_new(@pipeline.pipeline_name, params[:pipelineTemplateJson]) + end @pipeline.save! end