Added GitPoller and schedulers for the llvm-lnt repo.
diff --git a/buildbot/osuosl/master/config/schedulers.py b/buildbot/osuosl/master/config/schedulers.py
index 7bcb779..994507f 100644
--- a/buildbot/osuosl/master/config/schedulers.py
+++ b/buildbot/osuosl/master/config/schedulers.py
@@ -154,3 +154,73 @@
]
)
]
+
+# TODO: Abstract this kind of scheduler better.
+def getLntSchedulers():
+ project = "lnt"
+ lnt_builders = [
+ "publish-lnt-sphinx-docs",
+ ]
+ return [
+ schedulers.SingleBranchScheduler(
+ name="lnt-scheduler",
+ treeStableTimer=kwargs.get('treeStableTimer', None),
+ reason="Merge to LNT github {} branch".format(filter_branch),
+ builderNames=lnt_builders,
+ change_filter=util.ChangeFilter(
+ project_fn=project,
+ branch=filter_branch)),
+
+ schedulers.ForceScheduler(
+ name = "force-build-scheduler",
+ label = "Force Build",
+ buttonName = "Force Build",
+ reason = util.ChoiceStringParameter(
+ name = "reason",
+ label = "reason:",
+ required = True,
+ choices = [
+ "Build a particular revision",
+ "Force clean build",
+ "Narrow down blamelist",
+ ],
+ default = "Build a particular revision"
+ ),
+ builderNames = lnt_builders,
+ codebases = [
+ util.CodebaseParameter(
+ codebase = "",
+ branch = util.FixedParameter(
+ name = "branch",
+ default = _branch
+ ),
+ revision = util.StringParameter(
+ name = "revision",
+ label = "revision:",
+ size = 45,
+ default = ''
+ ),
+ repository = util.FixedParameter(
+ name = "repository",
+ default = _repourl
+ ),
+ project = util.FixedParameter(
+ name = "project",
+ default = project
+ )
+ )
+ ],
+ properties = [
+ util.BooleanParameter(
+ name = "clean",
+ label = "Clean source code and build directory",
+ default = False
+ ),
+ util.BooleanParameter(
+ name = "clean_obj",
+ label = "Clean build directory",
+ default = False
+ )
+ ]
+ ),
+ ]
diff --git a/buildbot/osuosl/master/master.cfg b/buildbot/osuosl/master/master.cfg
index c10158f..0b97bb3 100644
--- a/buildbot/osuosl/master/master.cfg
+++ b/buildbot/osuosl/master/master.cfg
@@ -39,6 +39,8 @@
from zorg.buildbot.process import buildrequest
reload(buildrequest)
+from buildbot.plugins import changes
+
c['change_source'] = []
# TODO: Do we want to support a push mode for the changes? Probably not.
#c['change_source'].append(PBChangeSource())
@@ -46,6 +48,12 @@
LLVMPoller(repourl='https://github.com/llvm/llvm-project.git',
workdir='gitpoller-workdir',
pollinterval=120))
+c['change_source'].append(
+ changes.GitPoller(repourl='https://github.com/llvm/llvm-lnt.git',
+ project='lnt',
+ branch='master',
+ workdir='gitpoller-llvm-lnt',
+ pollinterval=60*60))
c['collapseRequests'] = buildrequest.collapseRequests