mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2026-01-27 11:01:23 +01:00
builders.py: Add step to write out build properties in json format
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>
This commit is contained in:
parent
c2c4594835
commit
1552218c11
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user