When using WebStatus, the buildbot runs an XML-RPC server at /xmlrpc that can be used by other programs to query build status. The following table lists the methods that can be invoked using this interface.
getAllBuilders()
getLastBuildResults(builder_name)
getLastBuilds(builder_name, num_builds)
getLastBuildResults
)
getLastBuildsAllBuilders(num_builds)
getLastBuilds
, but returns the last builds for all builders.
This method can consume a lot of buildmaster CPU and disk resources.
getAllBuildsInInterval(start, stop)
getLastBuilds
. In particular, the start time and
reasons are omitted.
getBuild(builder_name, build_number)
This returns a dictionary (a struct in XMLRPC terms) with complete information about the build. Because it extracts log information, this call is a very heavyweight operation for the buildmaster.
Keys include:
builder_name
url
reason
slavename
results
text
reasons
getLastBuilds
, above.
number
branch
revision
start
end
steps
full_error
logs
The steps
key is a list of information about each step in the build, with keys
name
start
end
results
text
The full_error
and logs
keys contains most of the build's
logfiles, in an odd format. The full_error
key contains a hash keyed by
step name, but containing only failed logs. The values are the text of an
arbitrary one of the logs for each failing step.
The logs
key is a list of logs, each of which is represented by a hash
with keys name
, in the format stepname/logname
, and text
,
which is always the constant string HUGE
.