You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Defines how the cache is stored and restored. Can be any string (see [Customizab
48
48
49
49
Very basic local filesystem backend.
50
50
51
-
The `BUILDKITE_PLUGIN_FS_CACHE_FOLDER` environment variable defines where the copies are (default: `/var/cache/buildkite`). If you don't change it, you will need to make sure that the folder exists and `buildkite-agent` has the propper permissions, otherwise the plugin will fail.
51
+
The `BUILDKITE_PLUGIN_FS_CACHE_FOLDER` environment variable defines where the copies are (default: `/var/cache/buildkite`). If you don't change it, you will need to make sure that the folder exists and `buildkite-agent` has the propper permissions, otherwise the plugin will fail.
52
52
53
53
**IMPORTANT**: the `fs` backend just copies files to a different location in the current agent, as it is not a shared or external resource, its caching possibilities are quite limited.
54
54
@@ -59,6 +59,7 @@ Store things in an S3 bucket. You need to make sure that the `aws` command is av
59
59
You also need the agent to have access to the following defined environment variables:
60
60
* `BUILDKITE_PLUGIN_S3_CACHE_BUCKET`: the bucket to use (backend will fail if not defined)
61
61
* `BUILDKITE_PLUGIN_S3_CACHE_PREFIX`: optional prefix to use for the cache within the bucket
62
+
* `BUILDKITE_PLUGIN_S3_CACHE_ENDPOINT`: optional S3 custom endpoint to use
62
63
63
64
Setting the `BUILDKITE_PLUGIN_S3_CACHE_ONLY_SHOW_ERRORS` environment variable will reduce logging of file operations towards S3.
64
65
@@ -91,7 +92,7 @@ When restoring from cache, **all levels, in the described order, up to the one s
91
92
92
93
One of the greatest flexibilities of this plugin is its flexible backend architecture. You can provide whatever value you want for the `backend` option of this plugin (`X` for example) as long as there is an executable script accessible to the agent named `cache_X` that respects the following execution protocol:
93
94
94
-
* `cache_X exists $KEY`
95
+
* `cache_X exists $KEY`
95
96
96
97
Should exit successfully (0 return code) if any previous call to this very same plugin was made with `cache_x save $KEY`. Any other exit code will mean that there is no valid cache and will be ignored.
97
98
@@ -122,7 +123,7 @@ You can always have more complicated logic by using the plugin multiple times wi
0 commit comments