summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index f9a6ff7e0..aa5540451 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -817,8 +817,10 @@ class Element(Plugin):
# Create artifact directory structure
filesdir = os.path.join(assembledir, 'files')
logsdir = os.path.join(assembledir, 'logs')
+ metadir = os.path.join(assembledir, 'meta')
os.mkdir(filesdir)
os.mkdir(logsdir)
+ os.mkdir(metadir)
# Hard link files from collect dir to files directory
utils.link_files(collectdir, filesdir)
@@ -827,6 +829,9 @@ class Element(Plugin):
if self.__log_path:
shutil.copyfile(self.__log_path, os.path.join(logsdir, 'build.log'))
+ # Store public data
+ _yaml.dump(_yaml.node_sanitize(self.__public), os.path.join(metadir, 'public.yaml'))
+
with self.timed_activity("Caching Artifact"):
self.__artifacts.commit(self, assembledir)