You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

master.cfg.j2 4.1KB

5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
4 vuotta sitten
5 vuotta sitten
5 vuotta sitten
4 vuotta sitten
5 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
5 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # -*- python -*-
  2. # ex: set filetype=python:
  3. from buildbot.plugins import *
  4. # This is a sample buildmaster config file. It must be installed as
  5. # 'master.cfg' in your buildmaster's base directory.
  6. # This is the dictionary that the buildmaster pays attention to. We also use
  7. # a shorter alias to save typing.
  8. c = BuildmasterConfig = {}
  9. ####### WORKERS
  10. # The 'workers' list defines the set of recognized workers. Each element is
  11. # a Worker object, specifying a unique worker name and password. The same
  12. # worker name and password must be configured on the worker.
  13. c['workers'] = [
  14. worker.LocalWorker("local-worker",max_builds=1)
  15. ]
  16. # 'protocols' contains information about protocols which master will use for
  17. # communicating with workers. You must define at least 'port' option that workers
  18. # could connect to your master with this protocol.
  19. # 'port' must match the value configured into the workers (with their
  20. # --master option)
  21. c['protocols'] = {'pb': {'port': 9989}}
  22. ####### CHANGESOURCES
  23. # the 'change_source' setting tells the buildmaster how it should find out
  24. # about source code changes. Here we point to the buildbot version of a python hello-world project.
  25. c['change_source'] = []
  26. #c['change_source'].append(changes.GitPoller(
  27. # 'git://github.com/buildbot/hello-world.git',
  28. # workdir='gitpoller-workdir', branch='master',
  29. # pollInterval=300))
  30. ####### SCHEDULERS
  31. # Configure the Schedulers, which decide how to react to incoming changes. In this
  32. # case, just kick off a 'runtests' build
  33. c['schedulers'] = []
  34. ####### BUILDERS
  35. # The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
  36. # what steps, and which workers can execute them. Note that any particular build will
  37. # only take place on one worker.
  38. c['builders'] = []
  39. {% for builder_name in buildbot_builders.keys() %}
  40. {% set builder = buildbot_builders[builder_name] %}
  41. factory = util.BuildFactory()
  42. {% for repo in builder.repos %}
  43. factory.addStep(steps.GitHub(
  44. name='{{repo.name}}',
  45. repourl='{{repo.repourl}}',
  46. mode='incremental',
  47. workdir='{{repo.workdir}}',
  48. alwaysUseLatest=True,
  49. ))
  50. {% endfor %}
  51. {% for cmd in builder.shell_commands %}
  52. factory.addStep(steps.ShellCommand(
  53. name='{{cmd.name}}',
  54. command='{{cmd.command}}',
  55. workdir='{{cmd.workdir}}',
  56. ))
  57. {% endfor %}
  58. c['builders'].append(
  59. util.BuilderConfig(
  60. name="{{builder_name}}",
  61. workernames=["local-worker"],
  62. factory=factory
  63. )
  64. )
  65. c['schedulers'].append(schedulers.SingleBranchScheduler(
  66. name="{{builder_name}}",
  67. change_filter=util.ChangeFilter(branch='master'),
  68. treeStableTimer=None,
  69. builderNames=['{{builder_name}}']))
  70. {% endfor %}
  71. ####### BUILDBOT SERVICES
  72. # 'services' is a list of BuildbotService items like reporter targets. The
  73. # status of each build will be pushed to these targets. buildbot/reporters/*.py
  74. # has a variety to choose from, like IRC bots.
  75. c['services'] = []
  76. ####### PROJECT IDENTITY
  77. # the 'title' string will appear at the top of this buildbot installation's
  78. # home pages (linked to the 'titleURL').
  79. c['title'] = "covid-videoplattform CICD"
  80. c['titleURL'] = "https://github.com/covid-videoplattform"
  81. # the 'buildbotURL' string should point to the location where the buildbot's
  82. # internal web server is visible. This typically uses the port number set in
  83. # the 'www' entry below, but with an externally-visible host name which the
  84. # buildbot cannot figure out without some help.
  85. c['buildbotURL'] = "https://{{buildbot_server_name}}/"
  86. # minimalistic config to activate new web UI
  87. c['www'] = dict(
  88. port=8010,
  89. plugins = dict(
  90. waterfall_view={},
  91. console_view={},
  92. grid_view={}
  93. ),
  94. change_hook_dialects={
  95. 'github': {}
  96. },
  97. )
  98. ####### DB URL
  99. c['db'] = {
  100. # This specifies what database buildbot uses to store its state.
  101. # It's easy to start with sqlite, but it's recommended to switch to a dedicated
  102. # database, such as PostgreSQL or MySQL, for use in production environments.
  103. # http://docs.buildbot.net/current/manual/configuration/global.html#database-specification
  104. 'db_url' : "{{buildbot_database_url}}",
  105. }