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 ba85c1147..03646ff81 100644
--- a/buildstream/_pipeline.py
+++ b/buildstream/_pipeline.py
@@ -686,6 +686,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 artifact cache")
plan = elements
self.assert_consistent(plan)