Package bitten :: Module model :: Class Build

Class Build

object --+
         |
        Build

Representation of a build.
Instance Methods
 
__init__(self, env, config=None, rev=None, platform=None, slave=None, started=0, stopped=0, last_activity=0, rev_time=0, status='P')
Initialize a new build with the specified attributes.
 
__repr__(self)
repr(x)
 
delete(self, db=None)
Remove the build from the database.
 
insert(self, db=None)
Insert a new build into the database.
 
update(self, db=None)
Save changes to an existing build.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
fetch(cls, env, id, db=None)
Retrieve an existing build from the database by ID.
 
select(cls, env, config=None, rev=None, platform=None, slave=None, status=None, db=None, min_rev_time=None, max_rev_time=None)
Retrieve existing builds from the database that match the specified criteria.
Class Variables
  PENDING = 'P'
  IN_PROGRESS = 'I'
  SUCCESS = 'S'
  FAILURE = 'F'
  IP_ADDRESS = 'ipnr'
  MAINTAINER = 'owner'
  OS_NAME = 'os'
  OS_FAMILY = 'family'
  OS_VERSION = 'version'
  MACHINE = 'machine'
  PROCESSOR = 'processor'
  TOKEN = 'token'
Properties
  exists
Whether this build exists in the database
  completed
Whether the build has been completed
  successful
Whether the build was successful
  resource
Build resource identification

Inherited from object: __class__

Method Details

__init__(self, env, config=None, rev=None, platform=None, slave=None, started=0, stopped=0, last_activity=0, rev_time=0, status='P')
(Constructor)

 

Initialize a new build with the specified attributes.

To actually create this build in the database, the insert method needs to be called.

Overrides: object.__init__

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Property Details

exists

Whether this build exists in the database
Get Method:
unreachable(self)

completed

Whether the build has been completed
Get Method:
unreachable(self)

successful

Whether the build was successful
Get Method:
unreachable(self)

resource

Build resource identification
Get Method:
unreachable(self) - build