联调图形设计化-返回log

This commit is contained in:
xxq250 2024-05-31 08:55:36 +08:00
parent 0a80eea1aa
commit cf5b4c1e2d
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
pipeline_yaml = build_pipeline_yaml(params[:pipeline_name], params[:pipeline_json])
tip_exception("流水线yaml内空不能为空") if pipeline_yaml.blank?
@pipeline.yaml = pipeline_yaml
Rails.logger.info "pipeline_yaml base64=========================#{Base64.encode64(@pipeline.yaml).gsub(/\n/, '')}"
sha = get_pipeline_file_sha(@pipeline.file_name, @pipeline.branch)
interactor = sha.present? ? Gitea::UpdateFileInteractor.call(current_user.gitea_token, @owner.login, content_params("update").merge(sha: sha)) : Gitea::CreateFileInteractor.call(current_user.gitea_token, @owner.login, content_params("create"))
tip_exception(interactor.error) unless interactor.success?