summaryrefslogtreecommitdiff
path: root/buildstream/data
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2019-02-08 10:44:29 +0000
committerTom Pollard <tom.pollard@codethink.co.uk>2019-02-13 13:37:32 +0000
commit118644b22b01a7849a9f8e8e9637e817ed8c443d (patch)
tree30628eedcf5b43d109f2779b8863b3b991415bd7 /buildstream/data
parentae0ee361350b13a6c0f2fb24d3a24579305a021b (diff)
downloadbuildstream-118644b22b01a7849a9f8e8e9637e817ed8c443d.tar.gz
Add cli main & user conf option for 'cache-buildtrees' context
_context.py: Add cache_buildtrees global user context, the default of which is set to by default to 'always' via the addition of cache-buildtrees to userconfig.yaml cache group. 'failure' & 'never' can be given as valid options. app.py & cli.py: Add --cache-buildtrees as a bst main option, which when passed with a valid option can override the default or user defined context for cache_buildtrees. tests/completions/completions.py: Update for the added flag.
Diffstat (limited to 'buildstream/data')
-rw-r--r--buildstream/data/userconfig.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildstream/data/userconfig.yaml b/buildstream/data/userconfig.yaml
index 0834b93f6..0b4535cea 100644
--- a/buildstream/data/userconfig.yaml
+++ b/buildstream/data/userconfig.yaml
@@ -41,6 +41,15 @@ cache:
# Whether to pull build trees when downloading element artifacts
pull-buildtrees: False
+ # Whether to cache build trees on artifact creation:
+ #
+ # always - Always cache artifact build tree content
+ # failure - Only cache build trees of failed builds
+ # never - Don't cache artifact build tree content
+ #
+ cache-buildtrees: always
+
+
#
# Scheduler
#