summaryrefslogtreecommitdiff
path: root/app/services/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-22 13:54:59 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-25 10:36:59 +0100
commit76e7b19c8158bcf000db8575f958161a232d643e (patch)
tree120121eac1724c651760151a4efa21ee7e278821 /app/services/ci
parent9f26729af5a3403e6b4f040370996e9c2b35d8d4 (diff)
downloadgitlab-ce-76e7b19c8158bcf000db8575f958161a232d643e.tar.gz
Segregate interface require to make CI/CD entity processable
This commit segregates interface that is require to make CI/CD entity processable, like `Ci::Build`. With this change it is not clear and explicit what methods need to be implement to pass an object to pipeline processing service.
Diffstat (limited to 'app/services/ci')
-rw-r--r--app/services/ci/process_pipeline_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/process_pipeline_service.rb b/app/services/ci/process_pipeline_service.rb
index 446188347df..7dbb5c16c70 100644
--- a/app/services/ci/process_pipeline_service.rb
+++ b/app/services/ci/process_pipeline_service.rb
@@ -55,7 +55,7 @@ module Ci
# rubocop: enable CodeReuse/ActiveRecord
def created_builds
- pipeline.builds.created
+ pipeline.processables.created
end
# This method is for compatibility and data consistency and should be removed with 9.3 version of GitLab