我试图安装buildbot,所以我可以执行自动的东西,如build立我的乳胶文件和运行unit testing。 我不能在线上,所以我在VPS(数字海洋)上做。 我已经安装了,Web界面已经启动,并且从站已连接。
当我尝试添加一些限制时,我可以在示例configuration文件中使用一对login名/密码。 但项目和标签仍然显示为没有login的用户。
我也试着用下面的代码片断来使用htpasswd文件:
authz_cfg=authz.Authz( # change any of these to True to enable; see the manual for more # options auth=auth.HTPasswdAuth("/root/buildbot/bb-master/htpasswd"), gracefulShutdown = False, forceBuild = 'auth', # use this to test your slave once it is set up forceAllBuilds = 'auth', # ..or this pingBuilder = False, stopBuild = False, stopAllBuilds = False, cancelPendingBuild = False,
)
我如何configurationBuildBot操作系统隐藏所有的内容,只有身份validation后才显示?
将Authz调用添加view='auth' 。
authz_cfg=authz.Authz( auth=auth.HTPasswdAuth("/root/buildbot/bb-master/htpasswd"), view='auth' )