summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGökçen Nurlu <gnurlu1@bloomberg.net>2018-12-17 18:10:12 +0000
committerJürg Billeter <j@bitron.ch>2019-02-19 07:44:54 +0000
commite2074693ff50ad03e7e2602a0bb9efd38dd9ac8e (patch)
tree5f3a5abc6b8fbdf70824168d152c2bd32a5efab2
parent5f0571d1932f8ea3effcfd0dd2f2c67c9e615d15 (diff)
downloadbuildstream-gokcennurlu/dont_cache_if_stage_fails.tar.gz
Prevent caching when Element.stage() failsgokcennurlu/dont_cache_if_stage_fails
That step is not actually part of the build phase should not be cached and causes hard to find bugs. Fixes #791
-rw-r--r--buildstream/element.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 8fc491204..ac1dec4ac 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1620,12 +1620,12 @@ class Element(Plugin):
self.__dynamic_public = _yaml.node_copy(self.__public)
# Call the abstract plugin methods
- try:
- # Step 1 - Configure
- self.__configure_sandbox(sandbox)
- # Step 2 - Stage
- self.stage(sandbox)
+ # Step 1 - Configure
+ self.__configure_sandbox(sandbox)
+ # Step 2 - Stage
+ self.stage(sandbox)
+ try:
if self.__batch_prepare_assemble:
cm = sandbox.batch(self.__batch_prepare_assemble_flags,
collect=self.__batch_prepare_assemble_collect)