Reduce diff with EE in Ci::PipelineTriggerService

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2019-02-01 14:58:30 +01:00
parent d7a3f875d1
commit 5791aa86ce
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -7,6 +7,8 @@ module Ci
def execute
if trigger_from_token
create_pipeline_from_trigger(trigger_from_token)
elsif job_from_token
create_pipeline_from_job(job_from_token)
end
end
@ -35,6 +37,14 @@ module Ci
end
end
def create_pipeline_from_job(job)
# overriden in EE
end
def job_from_token
# overriden in EE
end
def variables
params[:variables].to_h.map do |key, value|
{ key: key, value: value }