builders: Add a posttrigger component to the build

This means the source mirror check is run a significant time after the source mirror
update allowing the mirroring code to have time to take effect rather than showing
errors on first build runs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-02-17 16:56:53 +00:00
parent b641513e3f
commit 3204310119

View File

@ -338,6 +338,26 @@ def create_parent_builder_factory(buildername, waitname):
waitForFinish=True, waitForFinish=True,
set_properties=get_props_set())) set_properties=get_props_set()))
factory.addStep(RunConfigLogObserver(
command=[
util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/run-config"),
util.Property("buildername") + "-posttrigger",
util.Interpolate("%(prop:builddir)s/build/build"),
util.Interpolate("%(prop:branch_poky)s"),
util.Interpolate("%(prop:repo_poky)s"),
"--sstateprefix", get_sstate_release_number,
"--publish-dir", get_publish_dest,
"--build-type", util.Interpolate("%(prop:build_type)s"),
"--build-url", util.URLForBuild,
"--results-dir", get_publish_resultdir,
"--quietlogging"],
name="run-config",
logfiles=get_buildlogs(maxsteps),
lazylogfiles=True,
maxsteps=maxsteps,
timeout=16200)) # default of 1200s/20min is too short, use 4.5hrs
factory.addStep(steps.ShellCommand( factory.addStep(steps.ShellCommand(
command=[ command=[
util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/send-qa-email"), util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/send-qa-email"),