Commit 445f2135 authored by Shinya Maeda's avatar Shinya Maeda

Use bang for trigger.trigger_requests.create

parent b3b8b595
...@@ -14,7 +14,7 @@ module Ci ...@@ -14,7 +14,7 @@ module Ci
pipeline = Ci::CreatePipelineService.new(project, trigger.owner, ref: params[:ref]) pipeline = Ci::CreatePipelineService.new(project, trigger.owner, ref: params[:ref])
.execute(:trigger, ignore_skip_ci: true) do |pipeline| .execute(:trigger, ignore_skip_ci: true) do |pipeline|
trigger.trigger_requests.create(pipeline: pipeline) trigger.trigger_requests.create!(pipeline: pipeline)
create_pipeline_variables!(pipeline) create_pipeline_variables!(pipeline)
end end
......
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