Reduce diff with EE in Ci::PipelineTriggerService
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
d7a3f875d1
commit
5791aa86ce
1 changed files with 10 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue