l.s.i.s.ISnapBuildEdit(Interface) : interface documentation

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

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

ISnapBuild attributes that require launchpad.Edit.
Method addFile Add a file to this build.
Method scheduleStoreUpload Schedule an upload of this build to the store.
Method cancel Cancel the build if it is either pending or in progress.
def addFile(lfa):
Add a file to this build.
ParameterslfaAn ILibraryFileAlias.
ReturnsAn ISnapFile.
@export_write_operation()
@operation_for_version('devel')
def scheduleStoreUpload():
Schedule an upload of this build to the store.
RaisesCannotScheduleStoreUploadif the build is not in a state where an upload can be scheduled.
@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.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.