summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-05 00:43:16 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-05 00:43:16 +0800
commit584258dbb82f76c627d8552fc96689c7879b36f6 (patch)
tree0a59548e46b9c413669c4445c0249987e97c7169 /app
parent3b2c5a85414090d93de33e26912b3ac2d771dfe9 (diff)
downloadgitlab-ce-584258dbb82f76c627d8552fc96689c7879b36f6.tar.gz
Share nothing so it's safest, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13581090
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 81991e8aa60..59ab8b5ce35 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -252,9 +252,12 @@ module Ci
end
def execute_hooks
- pipeline_data = Gitlab::DataBuilder::PipelineDataBuilder.build(self)
project.execute_hooks(pipeline_data, :pipeline_hooks)
- project.execute_services(pipeline_data.dup, :pipeline_hooks)
+ project.execute_services(pipeline_data, :pipeline_hooks)
+ end
+
+ def pipeline_data
+ Gitlab::DataBuilder::PipelineDataBuilder.build(self)
end
def keep_around_commits