diff mbox series

[yocto-autobuilder2] builders: Fix using a custom helper repository

Message ID 20260223-mathieu-fix-custom-helper-git-v1-1-e277ffb9da3f@bootlin.com
State New
Headers show
Series [yocto-autobuilder2] builders: Fix using a custom helper repository | expand

Commit Message

Mathieu Dubois-Briand Feb. 23, 2026, 4:33 p.m. UTC
The URL in config.repos is not updated when a build is launched.
Instead, use the "repository" property, if defined.

Fixes [YOCTO #13979]

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


---
base-commit: b0ffe10a67f842fb56855719ff7650919cda564b
change-id: 20260223-mathieu-fix-custom-helper-git-44a38e0da784

Best regards,
diff mbox series

Patch

diff --git a/builders.py b/builders.py
index b7379ece71f2..b6d72bc4dd58 100644
--- a/builders.py
+++ b/builders.py
@@ -113,7 +113,9 @@  def create_builder_factory():
         haltOnFailure=True,
         name="Clobber build dir"))
     f.addStep(steps.Git(
-        repourl=config.repos["yocto-autobuilder-helper"][0],
+        repourl=util.Interpolate("%(prop:repository:~%(kw:repository)s)s",
+                                 repository=config.repos["yocto-autobuilder-helper"][0]
+                                 ),
         branch=config.repos["yocto-autobuilder-helper"][1],
         workdir=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper"),
         mode='incremental',
@@ -300,7 +302,9 @@  def create_parent_builder_factory(buildername, waitname):
                     name="Clobber build dir"))
     # check out the source
     factory.addStep(steps.Git(
-        repourl=config.repos["yocto-autobuilder-helper"][0],
+        repourl=util.Interpolate("%(prop:repository:~%(kw:repository)s)s",
+                                 repository=config.repos["yocto-autobuilder-helper"][0]
+                                 ),
         branch=config.repos["yocto-autobuilder-helper"][1],
         workdir=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper"),
         mode='incremental',