Skip to content
Snippets Groups Projects
Verified Commit 26829668 authored by Matija Čupić's avatar Matija Čupić
Browse files

Refactor Ci::Build#cache

parent 8cc14dd5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -461,11 +461,14 @@ module Ci
end
 
def cache
if options[:cache] && project.jobs_cache_index
options[:cache].merge(key: "#{options[:cache][:key]}:#{project.jobs_cache_index}")
else
[options[:cache]]
cache = options[:cache]
if cache && project.jobs_cache_index
cache = cache.merge(
key: "#{cache[:key]}:#{project.jobs_cache_index}")
end
[cache]
end
 
def credentials
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment