Browse Source

联调图形设计化-返回log

pull/347/head
xxq250 2 years ago
parent
commit
cf5b4c1e2d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/api/v1/projects/pipelines_controller.rb

+ 1
- 0
app/controllers/api/v1/projects/pipelines_controller.rb 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?


Loading…
Cancel
Save