Commit 7e5bbc0d authored by Matija Čupić's avatar Matija Čupić

Use associated build pipeline

parent 63c64ab3
...@@ -44,12 +44,10 @@ class Projects::JobsController < Projects::ApplicationController ...@@ -44,12 +44,10 @@ class Projects::JobsController < Projects::ApplicationController
end end
def show def show
@builds = @project.pipelines @pipeline = @build.pipeline
.find_by_sha(@build.sha) @builds = @pipeline.builds
.builds
.order('id DESC') .order('id DESC')
.present(current_user: current_user) .present(current_user: current_user)
@pipeline = @build.pipeline
respond_to do |format| respond_to do |format|
format.html format.html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment