GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Reduce diff with EE in Ci::PipelineTriggerService

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d7a3f875
......@@ -7,6 +7,8 @@ class PipelineTriggerService < BaseService
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 @@ def trigger_from_token
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 }
......
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