From 706d872eb2ebb462b5c226890120f51cf15ba7c5 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 12 Aug 2016 12:06:37 +0200 Subject: Make `execute_methods` public --- app/models/ci/pipeline.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 40615097804..ad836bbebb8 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -255,13 +255,13 @@ module Ci self.duration = statuses.latest.duration end - private - def execute_hooks project.execute_hooks(pipeline_data, :pipeline_hooks) project.execute_services(pipeline_data, :pipeline_hooks) end + private + def pipeline_data Gitlab::DataBuilder::Pipeline.build(self) end -- cgit v1.2.1