l.s.i.s.ISnapBuildView(IPackageBuild) : interface documentation

Part of lp.snappy.interfaces.snapbuild View In Hierarchy

Known subclasses: lp.snappy.interfaces.webservice.ISnapBuild

ISnapBuild attributes that require launchpad.View permission.
Bool virtualized Undocumented
Datetime eta Undocumented
Bool estimate Undocumented
Datetime date Undocumented
Attribute store_upload_metadata A dict of data about store upload progress.
Method getFiles Retrieve the build's ISnapFile records.
Method getFileByName Return the corresponding ILibraryFileAlias in this context.
Method getFileUrls URLs for all the files produced by this build.

Inherited from IPackageBuild:

Object upload_log Undocumented
Attribute current_component Component where the source related to this build was last published.
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 getUploader Return the person responsible for the upload.

Inherited from IBuildFarmJob (via IPackageBuild):

Attribute id The build farm job ID.
Attribute build_farm_job Generic build farm job record
Bool is_private Whether the build should be treated as private.
Choice job_type The specific type of job.
Attribute build_cookie A string which uniquely identifies the job in the build farm.
Int failure_count Number of consecutive failures for this job.
Method setLog Set the LibraryFileAlias that contains the job log.
Method updateStatus Update job metadata when the build status changes.
Method gotFailure Increment the failure_count for this job.
Method calculateScore Calculate the build queue priority for this job.
Method estimateDuration Estimate the build duration.
Method queueBuild Create a BuildQueue entry for this build.
Attribute was_built Whether or not modified by the builddfarm.
Attribute external_dependencies Newline-separated list of repositories to be used to retrieve any external build-dependencies when performing this build.
virtualized =
eta =
estimate =
date =
store_upload_metadata =
A dict of data about store upload progress.
def getFiles():
Retrieve the build's ISnapFile records.
ReturnsA result set of (ISnapFile, ILibraryFileAlias, ILibraryFileContent).
def getFileByName(filename):
Return the corresponding ILibraryFileAlias in this context.

The following file types (and extension) can be looked up:

  • Build log: '.txt.gz'
  • Upload log: '_log.txt'

Any filename not matching one of these extensions is looked up as a snap package output file.

ParametersfilenameThe filename to look up.
ReturnsThe corresponding ILibraryFileAlias.
RaisesNotFoundErrorif no file exists with the given name.
def getFileUrls():
URLs for all the files produced by this build.
ReturnsA collection of URLs for this build.
API Documentation for Launchpad, generated by pydoctor at 2020-07-05 00:00:04.