From 3204310119462464b051d9b5d8e390c7f9d66cb1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 17 Feb 2020 16:56:53 +0000 Subject: [PATCH] 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 --- builders.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/builders.py b/builders.py index 681bda3..43ef5b8 100644 --- a/builders.py +++ b/builders.py @@ -338,6 +338,26 @@ def create_parent_builder_factory(buildername, waitname): waitForFinish=True, 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( command=[ util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/send-qa-email"),