Use associated build pipeline

This commit is contained in:
Matija Čupić 2018-06-29 17:45:32 +02:00
parent 63c64ab323
commit 7e5bbc0d1c
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -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