summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-02 18:35:34 +0900
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:08:14 +0200
commit49af84c2b0df199f1d8cda16a126ce6701e07743 (patch)
tree67db2d668028102e6b7e6d513656632a97f027c7 /app/services
parent4dd70b9e1e67b50d846b4fb48c0ff942104119a5 (diff)
downloadgitlab-ce-49af84c2b0df199f1d8cda16a126ce6701e07743.tar.gz
enqueue in process_build_service
Diffstat (limited to 'app/services')
-rw-r--r--app/services/ci/process_build_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/ci/process_build_service.rb b/app/services/ci/process_build_service.rb
index 0fbe93130d0..d9f8e7cb452 100644
--- a/app/services/ci/process_build_service.rb
+++ b/app/services/ci/process_build_service.rb
@@ -9,7 +9,7 @@ module Ci
elsif build.action?
build.actionize
else
- build.enqueue
+ enqueue(build)
end
true
@@ -21,6 +21,10 @@ module Ci
private
+ def enqueue(build)
+ build.enqueue
+ end
+
def valid_statuses_for_when(value)
case value
when 'on_success'