Commit 5791aa86 authored by Rémy Coutable's avatar Rémy Coutable

Reduce diff with EE in Ci::PipelineTriggerService

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d7a3f875
...@@ -7,6 +7,8 @@ module Ci ...@@ -7,6 +7,8 @@ module Ci
def execute def execute
if trigger_from_token if trigger_from_token
create_pipeline_from_trigger(trigger_from_token) create_pipeline_from_trigger(trigger_from_token)
elsif job_from_token
create_pipeline_from_job(job_from_token)
end end
end end
...@@ -35,6 +37,14 @@ module Ci ...@@ -35,6 +37,14 @@ module Ci
end end
end end
def create_pipeline_from_job(job)
# overriden in EE
end
def job_from_token
# overriden in EE
end
def variables def variables
params[:variables].to_h.map do |key, value| params[:variables].to_h.map do |key, value|
{ key: key, value: value } { key: key, value: value }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment