summaryrefslogtreecommitdiff
path: root/buildstream/data
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-22 14:58:09 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-11 17:13:10 +0000
commitd7959bd45493dc58ed6bc84aa2cf40b69b6854c6 (patch)
treecd5f2002291025e6473f82da11d81b6bc56f39df /buildstream/data
parent7a9c19984193b1072be4dc9adcbb00bcf732b822 (diff)
downloadbuildstream-d7959bd45493dc58ed6bc84aa2cf40b69b6854c6.tar.gz
Add support for multiple remote caches
This extends the 'artifacts' configuration block such that a list of `url` mappings can be given instead of a single entry. For example: artifacts: - url: http://example.com/artifacts1 - url: ssh://ostree@example.com/artifacts2 The OSTreeCache class is updated to set up multiple remotes and query remote refs from all of them. There are no automated tests for this yet. Empty URLs ('') now raise an exception. They cause breakages internally if we allow them through, and they can only occur if the user or our tests are misconfiguring things somehow. We report failure to fetch from the cache by printing a message to stderr for now. This is because BuildStream's actual logging functionality can't be used during frontend init -- see issue #168.
Diffstat (limited to 'buildstream/data')
-rw-r--r--buildstream/data/userconfig.yaml8
1 files changed, 0 insertions, 8 deletions
diff --git a/buildstream/data/userconfig.yaml b/buildstream/data/userconfig.yaml
index f43989dcc..edd74ef3f 100644
--- a/buildstream/data/userconfig.yaml
+++ b/buildstream/data/userconfig.yaml
@@ -48,14 +48,6 @@ scheduler:
#
on-error: quit
-#
-# Artifacts
-#
-artifacts:
-
- # A url from which to push and pull prebuilt artifacts.
- # Some protocols only support pushing.
- url: ''
#
# Logging