From 9fa3dee873f43f0ae1d836254c7fb4576f7b3ae6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 6 Nov 2020 16:50:12 +0000 Subject: [PATCH] master/schedulers: Add codebase markup to stop revisions being mapped incorrectly/incompatibly Signed-off-by: Richard Purdie --- master.cfg | 9 +++++++++ schedulers.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/master.cfg b/master.cfg index 2e4fe4c..a7c151f 100644 --- a/master.cfg +++ b/master.cfg @@ -69,6 +69,15 @@ c['change_source'] = [ changes.GitPoller(repourl='https://git.yoctoproject.org/git/yocto-docs', branches=True, project="yocto-docs", pollInterval=10*60) ] +def codebaseGenerator(chdict): + if "yocto-docs" in chdict['repository']: + return "yocto-docs" + elif "bitbake" in chdict['repository']: + return "bitbake" + return '' + +c['codebaseGenerator'] = codebaseGenerator + # Items which are common to Yocto Project autobuilder deployments using the # yocto-autobuilder-helper scripts c['schedulers'] = schedulers.schedulers diff --git a/schedulers.py b/schedulers.py index 3872972..2e8f3d5 100644 --- a/schedulers.py +++ b/schedulers.py @@ -319,6 +319,7 @@ schedulers.append(sched.Nightly(name='nightly-auh', branch='master', properties= # If any of our sphinx docs branches change, trigger a build schedulers.append(sched.AnyBranchScheduler(name="yocto-docs-changed", change_filter=util.ChangeFilter(project=["yocto-docs"], branch=["master", "master-next", "gatesgarth", "transition"]), + codebases = ['', 'yocto-docs', 'bitbake'], treeStableTimer=60, builderNames=["docs"])) @@ -330,6 +331,7 @@ def isbitbakeDocFile(change): return False schedulers.append(sched.AnyBranchScheduler(name="bitbake-docs-changed", change_filter=util.ChangeFilter(project=["bitbake"], branch=["master", "1.48"]), + codebases = ['', 'yocto-docs', 'bitbake'], fileIsImportant=isbitbakeDocFile, onlyImportant=True, treeStableTimer=60,