l.b.i.b.IBuildBase(Interface) : interface documentation

Part of lp.buildmaster.interfaces.buildbase View In Hierarchy

Common interface shared by farm jobs that build a package.
Choice status The current build state.
Object log Undocumented
Datetime date_finished The time when the build result got collected.
Choice build_farm_job_type The specific type of job.
Object builder The Builder which address this build request.
Timedelta buildduration Build duration interval, calculated when the build result gets collected.
Object buildqueue_record Undocumented
Attribute is_private Whether the build should be treated as private.
TextLine policy_name The upload policy to use for handling these builds.
Attribute current_component Component where the source related to this build was last published.
Object upload_log Undocumented
Method getUploaderCommand Get the command to run as the uploader.
Method getUploadLogContent Retrieve the upload log contents.
Method handleStatus Handle a finished build status from a slave.
Method getLogFromSlave Get last buildlog from slave.
Method queueBuild Create a BuildQueue entry for this build.
Method estimateDuration Estimate the build duration.
Method storeBuildInfo Store available information for the build job.
Method verifySuccessfulUpload Verify that the upload of this build completed succesfully.
Method storeUploadLog Store the given content as the build upload_log.
Method notify Notify current build state to related people via email.
Method makeJob Construct and return an IBuildFarmJob for this build.
status =
The current build state.
log =
Undocumented
date_finished =
The time when the build result got collected.
build_farm_job_type =
The specific type of job.
builder =
The Builder which address this build request.
buildduration =
Build duration interval, calculated when the build result gets collected.
buildqueue_record =
Undocumented
is_private =
Whether the build should be treated as private.
policy_name =
The upload policy to use for handling these builds.
current_component =
Component where the source related to this build was last published.
upload_log =
Undocumented
def getUploaderCommand(build, upload_leaf, uploader_logfilename):
Get the command to run as the uploader.
ReturnsA list of command line arguments, beginning with the executable.
def getUploadLogContent(root, leaf):
Retrieve the upload log contents.
ParametersrootRoot directory for the uploads
leafLeaf for this particular upload
ReturnsContents of log file or message saying no log file was found.
def handleStatus(status, librarian, slave_status):
Handle a finished build status from a slave.
ParametersstatusSlave build status string with 'BuildStatus.' stripped.
slave_statusA dict as returned by IBuilder.slaveStatus
def getLogFromSlave(build):
Get last buildlog from slave.

Invoke getFileFromSlave method with 'buildlog' identifier.

def queueBuild(build, suspended=False):
Create a BuildQueue entry for this build.
ParameterssuspendedWhether the associated Job instance should be created in a suspended state.
def estimateDuration():
Estimate the build duration.
def storeBuildInfo(build, librarian, slave_status):
Store available information for the build job.

Subclasses can override this as needed, and call it from custom status handlers, but it should not be called externally.

def verifySuccessfulUpload():
Verify that the upload of this build completed succesfully.
def storeUploadLog(content):
Store the given content as the build upload_log.
Parameterscontentstring containing the upload-processor log output for the binaries created in this build.
def notify(extra_info=None):
Notify current build state to related people via email.
def makeJob():
Construct and return an IBuildFarmJob for this build.
API Documentation for Launchpad, generated by pydoctor at 2010-08-25 00:00:22.