builders/schedulers: Add 'Should SWAT monitor?' boolean field to build schedulers

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-12-21 14:19:19 +00:00
parent 99cafafe1a
commit ccc041a8e8
2 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,7 @@ def ensure_props_set(props):
""" """
return { return {
"sharedrepolocation": props.getProperty("sharedrepolocation", ""), "sharedrepolocation": props.getProperty("sharedrepolocation", ""),
"swat_monitor": props.getProperty("swat_monitor", True),
"build_type": props.getProperty("build_type", "quick"), "build_type": props.getProperty("build_type", "quick"),
"is_release": props.getProperty("is_release", False), "is_release": props.getProperty("is_release", False),
"buildappsrcrev": props.getProperty("buildappsrcrev", ""), "buildappsrcrev": props.getProperty("buildappsrcrev", ""),

View File

@ -69,6 +69,10 @@ def props_for_builder(builder):
""" """
props = [] props = []
props.append(util.BooleanParameter(
name="swat_monitor",
label="Should SWAT monitor this build?",
default=True))
if builder == 'build-appliance': if builder == 'build-appliance':
props.append(buildappsrcrev_param()) props.append(buildappsrcrev_param())
if builder in ['build-appliance', 'buildtools', 'eclipse-plugin-neon', 'eclipse-plugin-oxygen']: if builder in ['build-appliance', 'buildtools', 'eclipse-plugin-neon', 'eclipse-plugin-oxygen']:
@ -259,6 +263,10 @@ def parent_scheduler(target):
'branch_oecore': 'morty', 'branch_oecore': 'morty',
} }
}), }),
util.BooleanParameter(
name="swat_monitor",
label="Should SWAT monitor this build?",
default=True),
buildappsrcrev_param(), buildappsrcrev_param(),
util.BooleanParameter( util.BooleanParameter(
name="is_release", name="is_release",