您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

84 行
1.8KB

  1. # -*- python -*-
  2. # ex: set filetype=python:
  3. {{ ansible_managed | comment}}
  4. from buildbot.plugins import *
  5. c = BuildmasterConfig = {}
  6. c['workers'] = []
  7. c['protocols'] = {'pb': {'port': 9989}}
  8. c['change_source'] = []
  9. #c['change_source'].append(changes.GitPoller(
  10. # 'git://github.com/buildbot/hello-world.git',
  11. # workdir='gitpoller-workdir', branch='master',
  12. # pollInterval=300))
  13. c['schedulers'] = []
  14. c['builders'] = []
  15. {% for builder_name in buildbot_builders.keys() %}
  16. {% set builder = buildbot_builders[builder_name] %}
  17. factory = util.BuildFactory()
  18. {% for repo in builder.repos %}
  19. factory.addStep(steps.GitHub(
  20. name='{{repo.name}}',
  21. repourl='{{repo.repourl}}',
  22. mode='incremental',
  23. workdir='{{repo.workdir}}',
  24. alwaysUseLatest=True,
  25. ))
  26. {% endfor %}
  27. {% for cmd in builder.shell_commands %}
  28. factory.addStep(steps.ShellCommand(
  29. name='{{cmd.name}}',
  30. command='{{cmd.command}}',
  31. workdir='{{cmd.workdir}}',
  32. ))
  33. {% endfor %}
  34. c['builders'].append(
  35. util.BuilderConfig(
  36. name="{{builder_name}}",
  37. workernames=["local-worker"],
  38. factory=factory
  39. )
  40. )
  41. c['schedulers'].append(schedulers.SingleBranchScheduler(
  42. name="{{builder_name}}",
  43. change_filter=util.ChangeFilter(branch='master'),
  44. treeStableTimer=None,
  45. builderNames=['{{builder_name}}']))
  46. {% endfor %}
  47. c['services'] = []
  48. c['title'] = "buildbot title"
  49. c['titleURL'] = "https://github.com/covid-videoplattform"
  50. c['buildbotURL'] = "https://{{buildbot_server_name}}/"
  51. c['www'] = dict(
  52. port=8010,
  53. plugins = dict(
  54. waterfall_view={},
  55. console_view={},
  56. grid_view={}
  57. ),
  58. change_hook_dialects={
  59. 'github': {}
  60. },
  61. )
  62. c['db'] = {
  63. 'db_url' : "{{buildbot_database_url}}",
  64. }