Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # -*- python -*- | 1 # -*- python -*- |
2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
3 <% require 'json' -%> | 3 <% require 'json' -%> |
4 | 4 |
5 # This is a sample buildmaster config file. It must be installed as | 5 # This is a sample buildmaster config file. It must be installed as |
6 # 'master.cfg' in your buildmaster's base directory. | 6 # 'master.cfg' in your buildmaster's base directory. |
7 | 7 |
8 import buildbot.buildslave | 8 import buildbot.buildslave |
9 import buildbot.status.html | 9 import buildbot.status.html |
10 import buildbot.status.web.authz | 10 import buildbot.status.web.authz |
11 | 11 |
12 # This is the dictionary that the buildmaster pays attention to. | 12 # This is the dictionary that the buildmaster pays attention to. |
13 # We also use a shorter alias to save typing. | 13 # We also use a shorter alias to save typing. |
14 c = BuildmasterConfig = {} | 14 c = BuildmasterConfig = <%= @config.to_json %> |
15 | 15 |
16 ####### BUILDSLAVES | 16 ####### BUILDSLAVES |
17 | 17 |
18 # The 'slaves' list defines the set of recognized buildslaves. Each | 18 # The 'slaves' list defines the set of recognized buildslaves. Each |
19 # element is a BuildSlave object, specifying a unique slave name and | 19 # element is a BuildSlave object, specifying a unique slave name and |
20 # password. The same slave name and password must be configured on | 20 # password. The same slave name and password must be configured on |
21 # the slave. | 21 # the slave. |
22 | 22 |
23 c['slaves'] = [ | 23 c['slaves'] = [ |
24 # Puppet: $slaves where $master == localhost:9989 | 24 # Puppet: $slaves where $master == localhost:9989 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 ), | 104 ), |
105 ), | 105 ), |
106 ) | 106 ) |
107 | 107 |
108 ####### PROJECT IDENTITY | 108 ####### PROJECT IDENTITY |
109 | 109 |
110 # the 'title' string will appear at the top of this buildbot | 110 # the 'title' string will appear at the top of this buildbot |
111 # installation's html.WebStatus home page (linked to the 'titleURL') | 111 # installation's html.WebStatus home page (linked to the 'titleURL') |
112 # and is embedded in the title of the waterfall HTML page. | 112 # and is embedded in the title of the waterfall HTML page. |
113 | 113 |
114 c['title'] = <%= @project.fetch('title', 'Example').to_s.to_json %> | 114 c.setdefault('title', 'Example') |
115 c['titleURL'] = <%= @project.fetch('url', 'http://example.com/').to_s.to_json %> | 115 c.setdefault('titleURL', 'http://example.com/') |
Felix Dahlke
2016/02/10 09:26:10
I suppose I'm missing something, but where are set
mathias
2016/02/10 10:30:45
Above, line 14; c = BuildmasterConfig = <%= @confi
Felix Dahlke
2016/02/10 11:54:40
Acknowledged.
| |
116 | 116 |
117 # the 'buildbotURL' string points to the location where the buildbot's | 117 # the 'buildbotURL' string points to the location where the buildbot's |
118 # internal web server (usually the html.WebStatus page) is visible. This | 118 # internal web server (usually the html.WebStatus page) is visible. This |
119 # typically uses the port number set in the Waterfall 'status' entry, | 119 # typically uses the port number set in the Waterfall 'status' entry, |
120 # but with an externally-visible host name which the buildbot cannot | 120 # but with an externally-visible host name which the buildbot cannot |
121 # figure out without some help. | 121 # figure out without some help. |
122 | 122 |
123 c['buildbotURL'] = 'http://localhost:<%= @http_port.to_i %>/' | 123 c.setdefault('buildbotURL', 'http://localhost:<%= @http_port.to_i %>/') |
Felix Dahlke
2015/11/19 19:50:02
Shouldn't the host/domain/URL come from the manife
mathias
2016/01/20 16:13:53
Indeed, the documentation (taken from the original
Felix Dahlke
2016/02/10 09:26:10
Yeah, it's the externally visible URL. We're still
mathias
2016/02/10 10:30:45
Indeed, this should be a setdefault() as well (the
Felix Dahlke
2016/02/10 11:54:39
Waiting for another patch set with this then.
mathias
2016/02/18 10:54:42
Actually this was correct in the last patch-set al
| |
124 | 124 |
125 ####### DB URL | 125 ####### DB URL |
126 | 126 |
127 # This specifies what database buildbot uses to store change and | 127 # This specifies what database buildbot uses to store change and |
128 # scheduler state. Leave this at its default for all but maybe the | 128 # scheduler state. Leave this at its default for all but maybe the |
129 # largest installations. | 129 # largest installations. |
130 | 130 |
131 c['db_url'] = <%= @database.to_s.to_json %> | 131 c['db_url'] = <%= @database.to_s.to_json %> |
132 | 132 |
LEFT | RIGHT |