l.s.i.b.IBinaryPackageBuildEdit(Interface) : interface documentation

Part of lp.soyuz.interfaces.binarypackagebuild View In Hierarchy

Known subclasses: lp.soyuz.interfaces.webservice.IBinaryPackageBuild

A Build interface for items requiring launchpad.Edit.
Method retry Restore the build record to its initial state.
Method cancel Cancel the build if it is either pending or in progress.
Method addBuildInfo Add a buildinfo file to this build.
@export_write_operation()
def retry():
Restore the build record to its initial state.

Build record loses its history, is moved to NEEDSBUILD and a new non-scored BuildQueue entry is created for it.

@export_write_operation()
@operation_for_version('devel')
def cancel():
Cancel the build if it is either pending or in progress.

Check the can_be_cancelled property prior to calling this method to find out if cancelling the build is possible.

If the build is in progress, it is marked as CANCELLING until the buildd manager terminates the build and marks it CANCELLED. If the build is not in progress, it is marked CANCELLED immediately and is removed from the build queue.

If the build is not in a cancellable state, this method is a no-op.

def addBuildInfo(buildinfo):
Add a buildinfo file to this build.
ParametersbuildinfoAn ILibraryFileAlias.
API Documentation for Launchpad, generated by pydoctor at 2019-08-23 00:00:13.