From 445f213527789b5500913fdf8ff5f34f9a1b6677 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 27 Jul 2017 22:44:53 +0900 Subject: [PATCH] Use bang for trigger.trigger_requests.create --- app/services/ci/pipeline_trigger_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb index af680d2f953..70d56718cdd 100644 --- a/app/services/ci/pipeline_trigger_service.rb +++ b/app/services/ci/pipeline_trigger_service.rb @@ -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