|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- # -*- python -*-
- # ex: set filetype=python:
-
- {{ ansible_managed | comment}}
-
- from buildbot.plugins import *
-
- c = BuildmasterConfig = {}
-
- c['workers'] = []
-
- c['protocols'] = {'pb': {'port': 9989}}
-
- c['change_source'] = []
- #c['change_source'].append(changes.GitPoller(
- # 'git://github.com/buildbot/hello-world.git',
- # workdir='gitpoller-workdir', branch='master',
- # pollInterval=300))
-
- c['schedulers'] = []
-
- c['builders'] = []
-
- {% for builder_name in buildbot_builders.keys() %}
- {% set builder = buildbot_builders[builder_name] %}
- factory = util.BuildFactory()
-
- {% for repo in builder.repos %}
- factory.addStep(steps.GitHub(
- name='{{repo.name}}',
- repourl='{{repo.repourl}}',
- mode='incremental',
- workdir='{{repo.workdir}}',
- alwaysUseLatest=True,
- ))
- {% endfor %}
-
- {% for cmd in builder.shell_commands %}
- factory.addStep(steps.ShellCommand(
- name='{{cmd.name}}',
- command='{{cmd.command}}',
- workdir='{{cmd.workdir}}',
- ))
- {% endfor %}
-
- c['builders'].append(
- util.BuilderConfig(
- name="{{builder_name}}",
- workernames=["local-worker"],
- factory=factory
- )
- )
-
- c['schedulers'].append(schedulers.SingleBranchScheduler(
- name="{{builder_name}}",
- change_filter=util.ChangeFilter(branch='master'),
- treeStableTimer=None,
- builderNames=['{{builder_name}}']))
-
- {% endfor %}
-
- c['services'] = []
-
- c['title'] = "buildbot title"
- c['titleURL'] = "https://github.com/covid-videoplattform"
-
- c['buildbotURL'] = "https://{{buildbot_server_name}}/"
-
- c['www'] = dict(
- port=8010,
- plugins = dict(
- waterfall_view={},
- console_view={},
- grid_view={}
- ),
- change_hook_dialects={
- 'github': {}
- },
- )
-
- c['db'] = {
- 'db_url' : "{{buildbot_database_url}}",
- }
|