mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
builders: Add an example of adding extra configuration to workers
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0ada7d26c9
commit
9200e30765
|
@ -10,6 +10,10 @@ import json
|
||||||
|
|
||||||
builders = []
|
builders = []
|
||||||
|
|
||||||
|
# Environment to pass into the workers, e.g. to load further local configuration
|
||||||
|
# fragments
|
||||||
|
extra_env = {}
|
||||||
|
#extra_env = {"ABHELPER_JSON" : "config.json /home/pokybuild/config-local.json"}
|
||||||
|
|
||||||
@util.renderer
|
@util.renderer
|
||||||
def get_sstate_release_number(props):
|
def get_sstate_release_number(props):
|
||||||
|
@ -172,7 +176,7 @@ for builder in config.triggered_builders:
|
||||||
workers = config.builder_to_workers['default']
|
workers = config.builder_to_workers['default']
|
||||||
builders.append(util.BuilderConfig(name=builder,
|
builders.append(util.BuilderConfig(name=builder,
|
||||||
workernames=workers,
|
workernames=workers,
|
||||||
factory=f))
|
factory=f, env=extra_env))
|
||||||
|
|
||||||
factory = util.BuildFactory()
|
factory = util.BuildFactory()
|
||||||
# NOTE: Assumes that yocto-autobuilder repo has been cloned to home
|
# NOTE: Assumes that yocto-autobuilder repo has been cloned to home
|
||||||
|
@ -270,4 +274,4 @@ factory.addStep(steps.ShellCommand(
|
||||||
builders.append(
|
builders.append(
|
||||||
util.BuilderConfig(name="nightly",
|
util.BuilderConfig(name="nightly",
|
||||||
workernames=config.workers,
|
workernames=config.workers,
|
||||||
factory=factory))
|
factory=factory, env=extra_env))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user