diff mbox series

[yocto-autobuilder2] builders.py: Add step to write out build properties in json format

Message ID 20250926162901.29045-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [yocto-autobuilder2] builders.py: Add step to write out build properties in json format | expand

Commit Message

Richard Purdie Sept. 26, 2025, 4:29 p.m. UTC
Rather than passing all options as command line parameters, write out a
build-properties.json file. Whilst currently unused, we can over time
migrate a lot of options into this file, making the interface with the
helper code easier.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 builders.py | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/builders.py b/builders.py
index 7887945a..bf36c755 100644
--- a/builders.py
+++ b/builders.py
@@ -132,6 +132,8 @@  def create_builder_factory():
         haltOnFailure=True,
         name="Unpack shared repositories"))
 
+    f.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json"))
+
     f.addStep(steps.SetPropertyFromCommand(
         command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"),
         extract_fn=extract_json_props,
@@ -328,6 +330,8 @@  def create_parent_builder_factory(buildername, waitname):
         haltOnFailure=True,
         name="Unpack shared repositories"))
 
+    factory.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json"))
+
     factory.addStep(steps.SetPropertyFromCommand(
         command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"),
         extract_fn=extract_json_props,