builders: set build revision to poky revision

By default, since the yocto-autobuilder-helper repository is the only
one that buildbot actually checks out in a step, the revision of that is
the one that gets associated with the build; however, it's much more
useful to have the revision set to the poky revision, so add a step that
does that.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2018-03-07 17:00:11 +13:00 committed by Richard Purdie
parent 6c6772b908
commit 7bdc7c9dcd
2 changed files with 5 additions and 1 deletions

1
TODO
View File

@ -2,7 +2,6 @@
* figure out htpasswd & auth for scheduling builds [Michael] * figure out htpasswd & auth for scheduling builds [Michael]
* ensure need auth to trigger builds [Michael] * ensure need auth to trigger builds [Michael]
* Display poky revision in web UI, not the yocto-autobuilder-helper revision [Paul]
# Future # Future

View File

@ -198,6 +198,11 @@ factory.addStep(steps.ShellCommand(
haltOnFailure=True, haltOnFailure=True,
name="Unpack shared repositories")) name="Unpack shared repositories"))
factory.addStep(steps.SetPropertyFromCommand(command=util.Interpolate("cd %(prop:sharedrepolocation)s/poky; git rev-parse HEAD"),
property="got_revision",
haltOnFailure=True,
name='Set build revision'))
# run-config # run-config
factory.addStep(steps.ShellCommand( factory.addStep(steps.ShellCommand(
command=[ command=[