Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
26829668
Commit
26829668
authored
Jan 04, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Ci::Build#cache
parent
8cc14dd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
app/models/ci/build.rb
app/models/ci/build.rb
+7
-4
No files found.
app/models/ci/build.rb
View file @
26829668
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment