From 7bdc7c9dcda870ec3c1494883cd3c36a46908598 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 7 Mar 2018 17:00:11 +1300 Subject: [PATCH] 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 Signed-off-by: Richard Purdie --- TODO | 1 - builders.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index c718b21..84a8c39 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,6 @@ * figure out htpasswd & auth for scheduling builds [Michael] * ensure need auth to trigger builds [Michael] - * Display poky revision in web UI, not the yocto-autobuilder-helper revision [Paul] # Future diff --git a/builders.py b/builders.py index 7a21b79..19e9425 100644 --- a/builders.py +++ b/builders.py @@ -198,6 +198,11 @@ factory.addStep(steps.ShellCommand( haltOnFailure=True, 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 factory.addStep(steps.ShellCommand( command=[