master/schedulers: Add codebase markup to stop revisions being mapped incorrectly/incompatibly

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-11-06 16:50:12 +00:00
parent 2412c64620
commit 9fa3dee873
2 changed files with 11 additions and 0 deletions

View File

@ -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) 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 # Items which are common to Yocto Project autobuilder deployments using the
# yocto-autobuilder-helper scripts # yocto-autobuilder-helper scripts
c['schedulers'] = schedulers.schedulers c['schedulers'] = schedulers.schedulers

View File

@ -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 # If any of our sphinx docs branches change, trigger a build
schedulers.append(sched.AnyBranchScheduler(name="yocto-docs-changed", schedulers.append(sched.AnyBranchScheduler(name="yocto-docs-changed",
change_filter=util.ChangeFilter(project=["yocto-docs"], branch=["master", "master-next", "gatesgarth", "transition"]), change_filter=util.ChangeFilter(project=["yocto-docs"], branch=["master", "master-next", "gatesgarth", "transition"]),
codebases = ['', 'yocto-docs', 'bitbake'],
treeStableTimer=60, treeStableTimer=60,
builderNames=["docs"])) builderNames=["docs"]))
@ -330,6 +331,7 @@ def isbitbakeDocFile(change):
return False return False
schedulers.append(sched.AnyBranchScheduler(name="bitbake-docs-changed", schedulers.append(sched.AnyBranchScheduler(name="bitbake-docs-changed",
change_filter=util.ChangeFilter(project=["bitbake"], branch=["master", "1.48"]), change_filter=util.ChangeFilter(project=["bitbake"], branch=["master", "1.48"]),
codebases = ['', 'yocto-docs', 'bitbake'],
fileIsImportant=isbitbakeDocFile, fileIsImportant=isbitbakeDocFile,
onlyImportant=True, onlyImportant=True,
treeStableTimer=60, treeStableTimer=60,