summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-21 04:27:03 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-21 04:27:03 +0100
commitf35336a1e6b1eb750a501a5d54396816f4800e69 (patch)
tree1ddfddc0c74988a35354f62a19b7824320099de2 /app
parent74a48ecd6bce154dff9704575ba3d0824a73e8e8 (diff)
downloadgitlab-ce-f35336a1e6b1eb750a501a5d54396816f4800e69.tar.gz
Fixed broken build
Diffstat (limited to 'app')
-rw-r--r--app/services/ci/update_build_queue_service.rb2
-rw-r--r--app/workers/build_queue_worker.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/ci/update_build_queue_service.rb b/app/services/ci/update_build_queue_service.rb
index b324863feef..704b872ddd0 100644
--- a/app/services/ci/update_build_queue_service.rb
+++ b/app/services/ci/update_build_queue_service.rb
@@ -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)
diff --git a/app/workers/build_queue_worker.rb b/app/workers/build_queue_worker.rb
index c0ceb8d423a..fa9e097e40a 100644
--- a/app/workers/build_queue_worker.rb
+++ b/app/workers/build_queue_worker.rb
@@ -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