diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-13 17:02:26 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-13 17:02:26 +0900 |
commit | 7338800787d571475810f26d7e921d8eb0382737 (patch) | |
tree | d7492f335d6deee1fa5e37c593016eceac576db3 /app/services/ci | |
parent | 373ff978dfb6898ee5e1d4d6355313c349a60a96 (diff) | |
download | gitlab-ce-7338800787d571475810f26d7e921d8eb0382737.tar.gz |
Fix PipelineTriggerService to associate trigger_request with builds
Diffstat (limited to 'app/services/ci')
-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 |