summaryrefslogtreecommitdiff
path: root/app/models/ci
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-04 19:40:07 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-04 22:17:03 +0100
commit8cc14dd5371c33f389211fcee39dbb28686b2021 (patch)
tree5d112a8a9cc325dd7c781db3a68e5c7cac6889d1 /app/models/ci
parent7d7d289b159fba332c68dc66b6f9f3b17428c3a3 (diff)
downloadgitlab-ce-8cc14dd5371c33f389211fcee39dbb28686b2021.tar.gz
Rename Project#cache_index to jobs_cache_index
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/build.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index e4ca74f87f2..ff903a63c54 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -461,8 +461,8 @@ module Ci
end
def cache
- if options[:cache] && project.cache_index
- options[:cache].merge(key: "#{options[:cache][:key]}:#{project.cache_index}")
+ if options[:cache] && project.jobs_cache_index
+ options[:cache].merge(key: "#{options[:cache][:key]}:#{project.jobs_cache_index}")
else
[options[:cache]]
end