summaryrefslogtreecommitdiff
path: root/app/models/ci/commit.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 10:14:33 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 10:15:40 +0200
commite3d870d7fc282a1f0a1028996c8b44e5d32b9cbf (patch)
tree578278b2435415d6684073bafea9d08d24fcf17f /app/models/ci/commit.rb
parent546a3c6561fbe967cc37ccc3229b71893cd20c34 (diff)
downloadgitlab-ce-e3d870d7fc282a1f0a1028996c8b44e5d32b9cbf.tar.gz
Add user to Ci::Build to have pusher email address
Diffstat (limited to 'app/models/ci/commit.rb')
-rw-r--r--app/models/ci/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/commit.rb b/app/models/ci/commit.rb
index 35134b6628e..3c577e3f081 100644
--- a/app/models/ci/commit.rb
+++ b/app/models/ci/commit.rb
@@ -96,10 +96,10 @@ module Ci
builds_without_retry.group(:stage_idx).select(:stage).last
end
- def create_builds(ref, tag, push_data, trigger_request = nil)
+ def create_builds(ref, tag, user, trigger_request = nil)
return if skip_ci? && trigger_request.blank?
return unless config_processor
- CreateBuildsService.new.execute(self, config_processor, ref, tag, push_data, trigger_request)
+ CreateBuildsService.new.execute(self, config_processor, ref, tag, user, trigger_request)
end
def refs