Browse Source

流水线列表查询

tags/v3.0.1
victor 5 years ago
parent
commit
4816ee04d3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/ci/pipelines_controller.rb

+ 1
- 1
app/controllers/ci/pipelines_controller.rb View File

@@ -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…
Cancel
Save