Use associated build pipeline
This commit is contained in:
parent
63c64ab323
commit
7e5bbc0d1c
1 changed files with 2 additions and 4 deletions
|
@ -44,12 +44,10 @@ class Projects::JobsController < Projects::ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
@builds = @project.pipelines
|
||||
.find_by_sha(@build.sha)
|
||||
.builds
|
||||
@pipeline = @build.pipeline
|
||||
@builds = @pipeline.builds
|
||||
.order('id DESC')
|
||||
.present(current_user: current_user)
|
||||
@pipeline = @build.pipeline
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
|
|
Loading…
Reference in a new issue