流水线列表查询
This commit is contained in:
parent
d2209619f0
commit
4816ee04d3
|
@ -12,7 +12,7 @@ class Ci::PipelinesController < Ci::BaseController
|
|||
# 查询build状态
|
||||
list.collect do |pipeline|
|
||||
pipeline.last_build_time = nil
|
||||
repo = load_repo_by_repo_slug("#{pipeline.login}/#{pipeline.identifier}")
|
||||
repo = load_repo_by_repo_slug("#{pipeline.owner}/#{pipeline.identifier}")
|
||||
if repo
|
||||
build = repo.builds.order("build_created desc").find_by(build_target: pipeline.branch)
|
||||
if build
|
||||
|
|
Loading…
Reference in New Issue