summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-16 13:02:39 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-22 15:03:53 +0000
commit4eb33736e1171734a8f4ed93976c0399aa8d85b3 (patch)
tree835b43586404f18bdfde90d19e80b29365faafe0
parent841f4e9e47ed4d7d14d8526a657600a6a67d7312 (diff)
downloadbuildstream-4eb33736e1171734a8f4ed93976c0399aa8d85b3.tar.gz
Check connectivity to remote cache on `bst push`
-rw-r--r--buildstream/_pipeline.py2
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)