diff options
author | Toon Claes <toon@gitlab.com> | 2017-04-06 10:09:28 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 00:50:37 +0300 |
commit | e6571ed9f9f4220ac6a4634b037977b2bfa5e488 (patch) | |
tree | 2dfc6499dda3eebd23d62269ea09886a604ce729 /app/services/ci | |
parent | f66e1c173406d2e447d46aab99f51c1277c801bc (diff) |
Check if a commit belongs to pipeline before trying to expire cache
Diffstat (limited to 'app/services/ci')
-rw-r--r-- | app/services/ci/expire_pipeline_cache_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/expire_pipeline_cache_service.rb b/app/services/ci/expire_pipeline_cache_service.rb index 983b30056e3..c0e4a798f6a 100644 --- a/app/services/ci/expire_pipeline_cache_service.rb +++ b/app/services/ci/expire_pipeline_cache_service.rb @@ -7,7 +7,7 @@ module Ci store = Gitlab::EtagCaching::Store.new store.touch(project_pipelines_path) - store.touch(commit_pipelines_path) + store.touch(commit_pipelines_path) if pipeline.commit store.touch(new_merge_request_pipelines_path) merge_requests_pipelines_paths.each { |path| store.touch(path) } end |