summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)