mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-05 05:04:47 +02:00
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:
parent
2412c64620
commit
9fa3dee873
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user