diff mbox series

[yocto-autobuilder2,v2,5/6] builders: provide builder name to getproperties.py

Message ID 20251016-contrib-mathieu-bb-setup-links-v2-5-095908455e0b@bootlin.com
State New
Headers show
Series Fix links with bitbake setup and general improvements | expand

Commit Message

Mathieu Dubois-Briand Oct. 16, 2025, 1:20 p.m. UTC
Provide the builder name to the getproperties.py script, allowing to
extract data about build configuration, such as MACHINE or DISTRO.

The script does validate the number of arguments, so we remain
compatible with older versions of autobuilder helper that do not use
this new one.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
 builders.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/builders.py b/builders.py
index 2fb0bf827b0f..18c119aa7617 100644
--- a/builders.py
+++ b/builders.py
@@ -137,7 +137,7 @@  def create_builder_factory():
     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"),
+        command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build %(prop:buildername)s"),
         extract_fn=extract_json_props,
         name='Load build revisions',
         haltOnFailure=True))
@@ -342,7 +342,7 @@  def create_parent_builder_factory(buildername, waitname):
     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"),
+        command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build %(prop:buildername)s"),
         extract_fn=extract_json_props,
         name='Load build revisions',
         haltOnFailure=True))