mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 01:35:56 +08:00
返回流水线内容同步状态
This commit is contained in:
@@ -52,7 +52,9 @@ class Ci::PipelinesController < Ci::BaseController
|
||||
|
||||
def content
|
||||
@yaml = "#pipeline \n"
|
||||
stages = Ci::Pipeline.find(params[:id]).pipeline_stages
|
||||
pipeline = Ci::Pipeline.find(params[:id])
|
||||
@sync = pipeline.sync
|
||||
stages = pipeline.pipeline_stages
|
||||
if stages && !stages.empty?
|
||||
init_step = stages.first.pipeline_stage_steps.first
|
||||
@yaml += init_step.content + "\n" + "steps:\n"
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
json.content @yaml
|
||||
json.content @yaml
|
||||
json.sync @sync
|
||||
Reference in New Issue
Block a user