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.

113 line
4.0KB

  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'] = [worker.LocalWorker("local-worker")]
  14. # 'protocols' contains information about protocols which master will use for
  15. # communicating with workers. You must define at least 'port' option that workers
  16. # could connect to your master with this protocol.
  17. # 'port' must match the value configured into the workers (with their
  18. # --master option)
  19. c['protocols'] = {'pb': {'port': 9989}}
  20. ####### CHANGESOURCES
  21. # the 'change_source' setting tells the buildmaster how it should find out
  22. # about source code changes. Here we point to the buildbot version of a python hello-world project.
  23. c['change_source'] = []
  24. #c['change_source'].append(changes.GitPoller(
  25. # 'git://github.com/buildbot/hello-world.git',
  26. # workdir='gitpoller-workdir', branch='master',
  27. # pollInterval=300))
  28. ####### SCHEDULERS
  29. # Configure the Schedulers, which decide how to react to incoming changes. In this
  30. # case, just kick off a 'runtests' build
  31. c['schedulers'] = []
  32. c['schedulers'].append(schedulers.SingleBranchScheduler(
  33. name="all",
  34. change_filter=util.ChangeFilter(branch='master'),
  35. treeStableTimer=None,
  36. builderNames=["covid-videoplattform"]))
  37. c['schedulers'].append(schedulers.ForceScheduler(
  38. name="force",
  39. builderNames=["covid-videoplattform"]))
  40. ####### BUILDERS
  41. # The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
  42. # what steps, and which workers can execute them. Note that any particular build will
  43. # only take place on one worker.
  44. factory = util.BuildFactory()
  45. factory.addStep(steps.GitHub(repourl='https://github.com/covid-videoplattform/covid-videoplattform.git', mode='incremental'))
  46. #factory.addStep(steps.ShellCommand(command=["trial", "hello"],
  47. # env={"PYTHONPATH": "."}))
  48. c['builders'] = []
  49. c['builders'].append(
  50. util.BuilderConfig(name="covid-videoplattform",
  51. workernames=["local-worker"],
  52. factory=factory))
  53. ####### BUILDBOT SERVICES
  54. # 'services' is a list of BuildbotService items like reporter targets. The
  55. # status of each build will be pushed to these targets. buildbot/reporters/*.py
  56. # has a variety to choose from, like IRC bots.
  57. c['services'] = []
  58. ####### PROJECT IDENTITY
  59. # the 'title' string will appear at the top of this buildbot installation's
  60. # home pages (linked to the 'titleURL').
  61. c['title'] = "covid-videoplattform CICD"
  62. c['titleURL'] = "https://github.com/covid-videoplattform"
  63. # the 'buildbotURL' string should point to the location where the buildbot's
  64. # internal web server is visible. This typically uses the port number set in
  65. # the 'www' entry below, but with an externally-visible host name which the
  66. # buildbot cannot figure out without some help.
  67. c['buildbotURL'] = "https://{{buildbot_server_name}}/"
  68. # minimalistic config to activate new web UI
  69. c['www'] = dict(
  70. port=8010,
  71. plugins = dict(
  72. waterfall_view={},
  73. console_view={},
  74. grid_view={}
  75. ),
  76. change_hook_dialects={'github': {}},
  77. )
  78. ####### DB URL
  79. c['db'] = {
  80. # This specifies what database buildbot uses to store its state.
  81. # It's easy to start with sqlite, but it's recommended to switch to a dedicated
  82. # database, such as PostgreSQL or MySQL, for use in production environments.
  83. # http://docs.buildbot.net/current/manual/configuration/global.html#database-specification
  84. 'db_url' : "{{buildbot_database_url}}",
  85. }