[users at bb.net] Passing parameters to plugins via master.cfg

Gabriel Nagy gabrielnagy at me.com
Thu Oct 26 09:30:34 UTC 2017


Hi guys,

I've been developing my own web interface dashboard thingy based on
Pierre's tutorial here:
https://medium.com/buildbot/buildbot-ui-plugin-for-python-developer-ef9dcfdedac0

My CI setup is as follows:
4 projects with about 6-7 builders each, and 1 dashboard per project that
does mostly what Console View does, except it filters by the project
parameter of my user try jobs.

The master setup is as follows:

c['www'] = dict(port=8020,
                plugins=dict(waterfall_view={}, console_view={},
grid_view={}, my_dashboard_1={}, my_dashboard_2={}, my_dashboard_3={},
my_dashboard_4={}))

My question is how can I have only one plugin, and pass some parameters to
it so I can run something like this:

c['www'] = dict(port=8020,
                plugins=dict(waterfall_view={}, console_view={},
grid_view={}, my_dashboard={project: 'proj1'}, my_dashboard={project:
'proj2'}, my_dashboard={project: 'proj3'}, my_dashboard={project: 'proj4'}))

Is something like this even possible? I find it redundant to create 4
separate dashboard plugins where the only difference is one line in the
controller file. There isn't much documentation on this side, and I have to
admit I'm a bit of a newbie concerning web development.

Thanks,
Gabe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20171026/4a9c312b/attachment.html>


More information about the users mailing list