diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-13 11:02:26 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-13 11:02:26 +0300 |
commit | 7338800787d571475810f26d7e921d8eb0382737 (patch) | |
tree | d7492f335d6deee1fa5e37c593016eceac576db3 /app | |
parent | 373ff978dfb6898ee5e1d4d6355313c349a60a96 (diff) |
Fix PipelineTriggerService to associate trigger_request with builds
Diffstat (limited to 'app')
-rw-r--r-- | app/services/ci/pipeline_trigger_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb index 1e5ad28ba57..120af8c1e61 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) + pipeline.trigger_requests.create!(trigger: trigger) create_pipeline_variables!(pipeline) end |