diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-03-31 15:47:34 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-04-07 17:24:11 +0200 |
commit | a6d313001a9df7f44402b1a0fca8bbd631b9fd87 (patch) | |
tree | 7be660e40f24e9c4826393fcf6912e9efbc0550d /app/models | |
parent | 47abf00b24efb0f6263ea37eddf2d6587950c5ee (diff) | |
download | gitlab-ce-a6d313001a9df7f44402b1a0fca8bbd631b9fd87.tar.gz |
Wrap updating of cache after pipeline transition in class method
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index b1cabbcd53e..1506a6bf6ab 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -393,7 +393,7 @@ module Ci end def refresh_project_build_status_cache - Gitlab::Cache::Ci::ProjectBuildStatus.new(project, sha: sha, status: status).store_in_cache_if_needed + Gitlab::Cache::Ci::ProjectBuildStatus.update_for_pipeline(self) end private |