summaryrefslogtreecommitdiff
path: root/buildstream/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/project.py')
-rw-r--r--buildstream/project.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildstream/project.py b/buildstream/project.py
index a1e111e52..f44ca4605 100644
--- a/buildstream/project.py
+++ b/buildstream/project.py
@@ -165,6 +165,7 @@ class Project():
'split-rules', 'elements', 'plugins',
'aliases', 'name',
'arches', 'host-arches',
+ 'artifacts',
])
# Resolve arches keyword, project may have arch conditionals
@@ -195,6 +196,13 @@ class Project():
# Workspace configurations
self.__workspaces = self._load_workspace_config()
+ # Load artifacts pull/push configuration for this project
+ artifacts = _yaml.node_get(config, Mapping, 'artifacts')
+ _yaml.validate_node(artifacts, ['pull-url', 'push-url', 'push-port'])
+ self.artifact_pull = _yaml.node_get(artifacts, str, 'pull-url', default_value='') or None
+ self.artifact_push = _yaml.node_get(artifacts, str, 'push-url', default_value='') or None
+ self.artifact_push_port = _yaml.node_get(artifacts, int, 'push-port', default_value=22)
+
return config
# _resolve():