mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
Merge branch 'pre_trustie_server' into trustie_server
This commit is contained in:
4
app/views/api/v1/projects/pipelines/create.json.jbuilder
Normal file
4
app/views/api/v1/projects/pipelines/create.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.status 0
|
||||
json.message "success"
|
||||
json.extract! @pipeline, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design, :pipeline_type,
|
||||
:repo_name, :repo_identifier, :branch, :event, :sha, :disable, :json, :yaml, :created_at, :updated_at
|
||||
@@ -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 pipeline.pipeline_type
|
||||
json.run_data @run_result.select { |result| result[:filename] == pipeline.file_name }.first
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
json.status 0
|
||||
json.message "success"
|
||||
json.extract! @pipeline, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design,
|
||||
json.extract! @pipeline, :id, :pipeline_name, :pipeline_status, :description, :file_name, :is_graphic_design, :pipeline_type,
|
||||
:repo_name, :repo_identifier, :branch, :event, :sha, :disable, :json, :yaml, :created_at, :updated_at
|
||||
# json.project
|
||||
Reference in New Issue
Block a user