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

Replace : with _ in cache key versioning

parent 6c978c8f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -466,7 +466,7 @@ module Ci
 
if cache && project.jobs_cache_index
cache = cache.merge(
key: "#{cache[:key]}:#{project.jobs_cache_index}")
key: "#{cache[:key]}_#{project.jobs_cache_index}")
end
 
[cache]
Loading
Loading
Loading
Loading
@@ -277,7 +277,7 @@ describe Ci::Build do
allow_any_instance_of(Project).to receive(:jobs_cache_index).and_return(1)
end
 
it { is_expected.to be_an(Array).and all(include(key: "key:1")) }
it { is_expected.to be_an(Array).and all(include(key: "key_1")) }
end
 
context 'when project does not have jobs_cache_index' do
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