diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-11-16 13:02:39 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-11-22 15:03:53 +0000 |
commit | 4eb33736e1171734a8f4ed93976c0399aa8d85b3 (patch) | |
tree | 835b43586404f18bdfde90d19e80b29365faafe0 /buildstream/_pipeline.py | |
parent | 841f4e9e47ed4d7d14d8526a657600a6a67d7312 (diff) | |
download | buildstream-4eb33736e1171734a8f4ed93976c0399aa8d85b3.tar.gz |
Check connectivity to remote cache on `bst push`
Diffstat (limited to 'buildstream/_pipeline.py')
-rw-r--r-- | buildstream/_pipeline.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index 9db1967be..75e5b0a50 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -683,6 +683,8 @@ class Pipeline(): if not self.artifacts.can_push(): raise PipelineError("Not configured for pushing artifacts") + if not self.can_push_remote_artifact_cache(): + raise PipelineError("Unable to push to the configured remote cache") plan = elements self.assert_consistent(plan) |