在终端中执行如下命令:
buildbot create-master buildbot_master
该命令会在当前目录下生成buildbot_master目录,且该目录下有一个配置文件为master.cfg.sample
1). 在启动之前,可以测试下配置文件。
终端下执行如下命令:
cd buildbot_master
拷贝 master.cfg.sample 修改文件名为master.cfg
$buildbot checkconfig master.cfg
正确则:Config file is good!
2).启动、停止
$cd buildbot_master
$buildbot start ./
启动的时候发现没有任何输出,去目录下看twistedlog发现报错
"C:\Python27\lib\site-packages\buildbot-2017.8.29-py2.7.egg\buildbot\www\service.py", line 267, in setupSite
raise RuntimeError("could not find buildbot-www; is it installed?")
exceptions.RuntimeError: could not find buildbot-www; is it installed?
然后用pip install buildbot-www安装
继续报错:
"C:\Python27\lib\site-packages\buildbot-2017.8.29-py2.7.egg\buildbot\www\service.py", line 274, in setupSite
"could not find plugin %s; is it installed?" % (key,))
exceptions.RuntimeError: could not find plugin grid_view; is it installed?
pip install buildbot-grid-view
下载地址 https://pypi.python.org/pypi/buildbot-grid-view/0.9.10
简直不忍直视:
"C:\Python27\lib\site-packages\buildbot-2017.8.29-py2.7.egg\buildbot\www\service.py", line 274, in setupSite
"could not find plugin %s; is it installed?" % (key,))
exceptions.RuntimeError: could not find plugin waterfall_view; is it installed?继续解决;
https://pypi.python.org/pypi/buildbot-waterfall-view/0.9.10
至此终于收到能看到界面: