mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
builders: Avoid errors if sharedrepolocation is unset
Try and avoid errors like: /bin/sh: 1: cd: can't cd to /poky 0631ddde57c27c25f5729bc0204476f8c7ff826f for builds without a parent trigger and hence a shared checkout directory. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1f76afc03f
commit
e3e148cb4a
|
@ -113,12 +113,12 @@ def create_builder_factory():
|
|||
haltOnFailure=True,
|
||||
name="Unpack shared repositories"))
|
||||
|
||||
f.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation)s/poky; git rev-parse HEAD"),
|
||||
f.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation:~%(prop:builddir)s)s/poky; git rev-parse HEAD"),
|
||||
property="yp_build_revision",
|
||||
haltOnFailure=True,
|
||||
name='Set build revision'))
|
||||
|
||||
f.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation)s/poky; git rev-parse --abbrev-ref HEAD"),
|
||||
f.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation:~%(prop:builddir)s)s/poky; git rev-parse --abbrev-ref HEAD"),
|
||||
property="yp_build_branch",
|
||||
haltOnFailure=True,
|
||||
name='Set build branch'))
|
||||
|
@ -274,12 +274,12 @@ def create_parent_builder_factory(buildername, waitname):
|
|||
haltOnFailure=True,
|
||||
name="Unpack shared repositories"))
|
||||
|
||||
factory.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation)s/poky; git rev-parse HEAD"),
|
||||
factory.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation:~%(prop:builddir)s)s/poky; git rev-parse HEAD"),
|
||||
property="yp_build_revision",
|
||||
haltOnFailure=True,
|
||||
name='Set build revision'))
|
||||
|
||||
factory.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation)s/poky; git rev-parse --abbrev-ref HEAD"),
|
||||
factory.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation:~%(prop:builddir)s)s/poky; git rev-parse --abbrev-ref HEAD"),
|
||||
property="yp_build_branch",
|
||||
haltOnFailure=True,
|
||||
name='Set build branch'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user