summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 17:01:42 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 17:01:42 -0500
commit4f1c63683175fa88ca41ba2180b68e266d7118e4 (patch)
tree641c40a4e8893fb97053971beac603ae85c1711a /app/services
parentef60b8e1685a8761477e822b3190a3a0cf4b0cfa (diff)
downloadgitlab-ce-4f1c63683175fa88ca41ba2180b68e266d7118e4.tar.gz
Create pipeline objects with parameterswith-pipeline-view
Diffstat (limited to 'app/services')
-rw-r--r--app/services/ci/create_pipeline_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb
index b864807ec35..5bc0c31cb42 100644
--- a/app/services/ci/create_pipeline_service.rb
+++ b/app/services/ci/create_pipeline_service.rb
@@ -1,7 +1,7 @@
module Ci
class CreatePipelineService < BaseService
def execute
- pipeline = project.ci_commits.new
+ pipeline = project.ci_commits.new(params)
unless ref_names.include?(params[:ref])
pipeline.errors.add(:base, 'Reference not found')
@@ -21,8 +21,6 @@ module Ci
begin
Ci::Commit.transaction do
pipeline.sha = commit.id
- pipeline.ref = params[:ref]
- pipeline.before_sha = Gitlab::Git::BLANK_SHA
unless pipeline.config_processor
pipeline.errors.add(:base, pipeline.yaml_errors || 'Missing .gitlab-ci.yml file')