diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-11 17:24:02 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-11 17:26:51 +0000 |
commit | 51c17e1147392f15580fb2dd925055ad8863ab3e (patch) | |
tree | 22cd2ff687a19ee56ef371a777f70d39a4d3b5ae /buildstream/_project.py | |
parent | 1490802c9a2b13bce8762e73db0a1110441223e5 (diff) | |
download | buildstream-51c17e1147392f15580fb2dd925055ad8863ab3e.tar.gz |
Allow push to multiple remotes, configurable on a per-remote basis
The initial multiple cache support patch implemented a rather fragile
logic where we would push to the first cache in the list that used the
ssh:// protocol, if any. If we implement push-over-https:// in future
then this will become totally unworkable.
This patch alters the logic so that each remote has a 'push' option,
and BuildStream will push to any remote that has 'push: true' set.
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r-- | buildstream/_project.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index 35873fb72..3bbe61f19 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -28,7 +28,7 @@ from . import _yaml from ._profile import Topics, profile_start, profile_end from ._exceptions import LoadError, LoadErrorReason from ._options import OptionPool -from ._artifactcache import artifact_cache_urls_from_config_node +from ._artifactcache import artifact_cache_specs_from_config_node # The base BuildStream format version @@ -173,7 +173,7 @@ class Project(): # # Load artifacts pull/push configuration for this project - self.artifact_urls = artifact_cache_urls_from_config_node(config) + self.artifact_cache_specs = artifact_cache_specs_from_config_node(config) # Workspace configurations self._workspaces = self._load_workspace_config() |