Use bang for trigger.trigger_requests.create

This commit is contained in:
Shinya Maeda 2017-07-27 22:44:53 +09:00
parent b3b8b595a1
commit 445f213527

View file

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