Buildbot配置错误

时间:2015-08-03 16:32:22

标签: buildbot

我已经安装了buildbot master和slave,当我在启动master后运行slave时,这是我的构建名称simplebuild的主脚本。

c = BuildmasterConfig = {}
c['status'] = []

from buildbot.status import html
from buildbot.status.web import authz, auth

authz_cfg=authz.Authz(
   auth=auth.BasicAuth([("slave1","slave1")]),
    gracefulShutdown = False,
    forceBuild = 'auth', 
    forceAllBuilds = False,
    pingBuilder = False,
    stopBuild = False,
    stopAllBuilds = False,
    cancelPendingBuild = False,
)

c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg))

from buildbot.process.factory import BuildFactory
from buildbot.steps.source import SVN
from buildbot.steps.shell import ShellCommand

qmake = ShellCommand(name = "qmake",
command = ["qmake"],
haltOnFailure = True,
description = "qmake")

makeclean = ShellCommand(name = "make clean",
command = ["make", "clean"],
haltOnFailure = True,
description = "make clean")

checkout = SVN(baseURL = "file:///home/aguerofire/buildbottestsetup/codeRepo/",
mode = "update",
username = "pawan",
password = "pawan",
haltOnFailure = True )

makeall = ShellCommand(name = "make all",
command = ["make", "all"],
haltOnFailure = True,
description = "make all")

f_simplebuild = BuildFactory()
f_simplebuild.addStep(checkout)
f_simplebuild.addStep(qmake)
f_simplebuild.addStep(makeclean)
f_simplebuild.addStep(makeall)

from buildbot.buildslave import BuildSlave
c['slaves'] = [
    BuildSlave('slave1', 'slave1'),
]

c['slavePortnum'] = 13333


from buildbot.config import BuilderConfig

c['builders'] = [
BuilderConfig(name = "simplebuild", slavenames = ['slave1'], factory = f_simplebuild)
]


from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.changes import filter
trunkchanged = SingleBranchScheduler(name = "trunkchanged",
change_filter = filter.ChangeFilter(branch = 'master'),
treeStableTimer = 10,
builderNames = ["simplebuild"])
c['schedulers'] = [ trunkchanged ]



from buildbot.changes.svnpoller import SVNPoller
svnpoller = SVNPoller(svnurl = "file:///home/aguerofire/buildbottestsetup/codeRepo/",
svnuser = "pawan",
svnpasswd = "pawan",
pollinterval = 20,
split_file =  None)
c['change_source'] = svnpoller

运行此脚本后,当我在浏览器中检查构建的状态时,我没有获得构建的任何状态。

Console view of build bot

瀑布视图里面的细节是 Waterfall run detail

  1. 我的第一个问题是在主人的终点或奴隶结束时进行实际构建?

  2. 在配置buildbot时会出现什么问题,因为我在提交中发现了一个错误,并试图找出它将在瀑布显示中显示的天气......但同样没有错误和相同屏幕如同进入控制台视图和瀑布视图?

1 个答案:

答案 0 :(得分:0)

  1. 构建在从属服务器上运行,主服务器只管理调度程序,构建器和从服务器。
  2. 似乎没有运行构建。至于您的第二个屏幕截图,它显示更改信息,但不显示构建信息。你的建筑商"是什么? tab show?