diff options
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r-- | buildstream/_project.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index 2f8ae69fb..f0ca3d71b 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -128,6 +128,7 @@ class Project(): self._shell_host_files = [] # A list of HostMount objects self.artifact_cache_specs = None + self.remote_execution_url = None self._sandbox = None self._splits = None @@ -471,7 +472,7 @@ class Project(): 'aliases', 'name', 'artifacts', 'options', 'fail-on-overlap', 'shell', 'fatal-warnings', - 'ref-storage', 'sandbox', 'mirrors' + 'ref-storage', 'sandbox', 'mirrors', 'remote-execution' ]) # @@ -482,6 +483,11 @@ class Project(): # Load artifacts pull/push configuration for this project self.artifact_cache_specs = ArtifactCache.specs_from_config_node(config, self.directory) + # Load remote-execution configuration for this project + remote_execution = _yaml.node_get(config, Mapping, 'remote-execution') + _yaml.node_validate(remote_execution, ['url']) + self.remote_execution_url = _yaml.node_get(remote_execution, str, 'url') + # Load sandbox environment variables self.base_environment = _yaml.node_get(config, Mapping, 'environment') self.base_env_nocache = _yaml.node_get(config, list, 'environment-nocache') |