diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-02 17:17:23 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-03 11:34:36 +0200 |
commit | c6bce7e63c305d07dbc91d032df9c783e0cf0c9f (patch) | |
tree | 4486203a362731ea5ff90361243b9ca3a09d575e /app/services/ci | |
parent | 07af37a243ea0d6b5741754ea116044ee46614b3 (diff) | |
download | gitlab-ce-c6bce7e63c305d07dbc91d032df9c783e0cf0c9f.tar.gz |
Save Ci::Commit object to persist all created builds
Diffstat (limited to 'app/services/ci')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 | ||||
-rw-r--r-- | app/services/ci/create_trigger_request_service.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index 0336b767de5..864415ef747 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -31,7 +31,7 @@ module Ci pipeline.errors.add(:base, 'No builds for this pipeline.') end - pipeline.update_state! + pipeline.save pipeline end diff --git a/app/services/ci/create_trigger_request_service.rb b/app/services/ci/create_trigger_request_service.rb index 993acf11db9..c611a963112 100644 --- a/app/services/ci/create_trigger_request_service.rb +++ b/app/services/ci/create_trigger_request_service.rb @@ -15,6 +15,7 @@ module Ci ) if ci_commit.create_builds(nil, trigger_request) + ci_commit.save trigger_request end end |