Fixed broken build

This commit is contained in:
Kim "BKC" Carlbäcker 2016-12-21 04:27:03 +01:00
parent 74a48ecd6b
commit f35336a1e6
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
module Ci
class UpdateBuildQueueService < BaseService
class UpdateBuildQueueService
def execute(build)
build.project.runners.select do |runner|
if runner.can_pick?(build)

View file

@ -4,7 +4,7 @@ class BuildQueueWorker
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
UpdateBuildQueueService.execute(build)
Ci::UpdateBuildQueueService.new.execute(build)
end
end
end