diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-01 16:58:30 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-01 16:58:34 +0300 |
commit | 5791aa86cedfe258a1e17c72fc1d11da90cec7f1 (patch) | |
tree | 7bb851fb7ea1437fa5982e9bbc3feb6d4ef8b2c6 /app | |
parent | d7a3f875d13b8d4a599a61232938f762d9c5e735 (diff) |
Reduce diff with EE in Ci::PipelineTriggerService
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/pipeline_trigger_service.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb index f54574b026b..4ba3f5fb8ba 100644 --- a/app/services/ci/pipeline_trigger_service.rb +++ b/app/services/ci/pipeline_trigger_service.rb @@ -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 } |