流水线列表新接口

This commit is contained in:
2025-03-17 11:20:37 +08:00
parent 0c438cbe21
commit 164bcb86bd
3 changed files with 40 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
json.status 0
json.message "success"
json.pipelines @pipelines.each do |pip|
json.extract! pip, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design,
json.pipelines @pipelines.each do |pipeline|
json.extract! pipeline, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design,
:repo_name, :repo_identifier, :branch, :event, :sha, :disable, :json, :yaml, :created_at, :updated_at
# json.project
json.pipeline_type
json.run_data @run_result.select { |result| result.filename == pipeline.file_name }.first
end