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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d63fa1a0
Commit
d63fa1a0
authored
Nov 18, 2019
by
Marius Bobin
Committed by
Marcel Amirault
Nov 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for CI cache key when using files
parent
26e2dff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+5
-5
No files found.
doc/ci/yaml/README.md
View file @
d63fa1a0
...
...
@@ -1539,9 +1539,9 @@ cache:
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/18986) in GitLab v12.5.
If
`cache:key:files`
is added,
the cache
`key`
will use the SHA of the most recent commit
that changed either of the given files. If neither file was changed in any commits, the key will be
`default`
.
A maximum of two files are allowed
.
If
`cache:key:files`
is added,
one or two files must be defined with it. The cache
`key`
will be a SHA computed from the most recent commits (one or two) that changed the
given files. If neither file was changed in any commits, the key will be
`default`
.
```
yaml
cache
:
...
...
@@ -1559,8 +1559,8 @@ cache:
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/18986) in GitLab v12.5.
The
`prefix`
parameter adds extra functionality to
`key:files`
by allowing the key to
be composed of the given
`prefix`
combined with the SHA
of the most recent commit
that changed either of the files.
For example, adding a
`prefix`
of
`rspec`
, will
be composed of the given
`prefix`
combined with the SHA
computed for
`cache:key:files`
.
For example, adding a
`prefix`
of
`rspec`
, will
cause keys to look like:
`rspec-feef9576d21ee9b6a32e30c5c79d0a0ceb68d1e5`
. If neither
file was changed in any commits, the prefix is added to
`default`
, so the key in the
example would be
`rspec-default`
.
...
...
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