builders: Add option to always collect up test results from builds

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-11-20 23:32:52 +00:00
parent 1d533e410f
commit cfa0545484

View File

@ -36,7 +36,7 @@ def get_publish_internal(props):
Calculate the location to which artefacts should be published and store it
as a property for use by other workers.
"""
dest = ""
# Cache the value in the publish_detination property
dest = props.getProperty("publish_destination", "")
if dest:
return dest
@ -96,6 +96,10 @@ def get_publish_dest(props):
return ""
return get_publish_internal(props)
@util.renderer
def get_publish_resultdir(props):
return get_publish_internal(props)
@util.renderer
def get_publish_name(props):
dest = get_publish_internal(props)
@ -173,6 +177,7 @@ def create_builder_factory():
"-b", util.Interpolate("%(prop:buildappsrcrev)s"),
"-p", get_publish_dest,
"-u", util.URLForBuild,
"-r", get_publish_resultdir,
"-q"],
name="run-config",
logfiles=get_buildlogs(maxsteps),
@ -254,6 +259,7 @@ factory.addStep(RunConfigLogObserver(
"-s", get_sstate_release_number,
"-p", get_publish_dest,
"-u", util.URLForBuild,
"-r", get_publish_resultdir,
"-q"],
name="run-config",
logfiles=get_buildlogs(maxsteps),