builders.py: Attempt to set revision earlier

This means the display will show the correct revision before triggering and waiting
for all the builds to complete making the display less confusing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-05-09 17:22:27 +01:00
parent b5970d5b49
commit 52bb871dd9

View File

@ -236,15 +236,16 @@ def get_props_set():
return set_props
factory.addStep(steps.Trigger(schedulerNames=['wait'],
waitForFinish=True,
set_properties=get_props_set()))
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'))
factory.addStep(steps.Trigger(schedulerNames=['wait'],
waitForFinish=True,
set_properties=get_props_set()))
# TODO: send QA mail if a release - compose and pass to sendmail command?