diff options
author | Jürg Billeter <j@bitron.ch> | 2017-07-03 10:16:05 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-07-05 20:32:20 +0900 |
commit | d2715b008922f4d95d19c9b81b41a3dbdc9f4973 (patch) | |
tree | 0e1210dc836967e3847d36533b9e2c1291bdf1cf | |
parent | 20f232c70d4ccc56278437817b1e9f88b134bad5 (diff) | |
download | buildstream-d2715b008922f4d95d19c9b81b41a3dbdc9f4973.tar.gz |
element.py: Commit public data to artifact cache
-rw-r--r-- | buildstream/element.py | 5 |
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) |