mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
schedulers: Fix bug in scheduler started job coverage
Jobs started by the nightly scheduler were failing as sourcestamps are empty for these. This meant that additional branch specific target triggers were not being handled and jobs were being missed. Switch to using the yo_build_branch property which was the original intention and should always be set, fixing the jobs being started. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ae16bba725
commit
02ac6aee13
|
@ -430,7 +430,7 @@ for builder in config.subbuilders:
|
||||||
@util.renderer
|
@util.renderer
|
||||||
def builderNamesFromConfigQuick(props):
|
def builderNamesFromConfigQuick(props):
|
||||||
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
|
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
|
||||||
yp_branch = props.sourcestamps[0]['branch']
|
yp_branch = props.getProperty('yp_build_branch')
|
||||||
|
|
||||||
builders = config.trigger_builders_wait_quick
|
builders = config.trigger_builders_wait_quick
|
||||||
for b in config.trigger_builders_wait_quick_releases:
|
for b in config.trigger_builders_wait_quick_releases:
|
||||||
|
@ -443,7 +443,7 @@ def builderNamesFromConfigQuick(props):
|
||||||
@util.renderer
|
@util.renderer
|
||||||
def builderNamesFromConfigFull(props):
|
def builderNamesFromConfigFull(props):
|
||||||
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
|
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
|
||||||
yp_branch = props.sourcestamps[0]['branch']
|
yp_branch = props.getProperty('yp_build_branch')
|
||||||
|
|
||||||
builders = config.trigger_builders_wait_full
|
builders = config.trigger_builders_wait_full
|
||||||
for b in config.trigger_builders_wait_full_releases:
|
for b in config.trigger_builders_wait_full_releases:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user