Package bitten :: Module model :: Class BuildStep

Class BuildStep

object --+
         |
        BuildStep

Represents an individual step of an executed build.
Instance Methods
 
__init__(self, env, build=None, name=None, description=None, status=None, started=None, stopped=None)
Initialize a new build step with the specified attributes.
 
delete(self, db=None)
Remove the build step from the database.
 
insert(self, db=None)
Insert a new build step into the database.

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

Class Methods
 
fetch(cls, env, build, name, db=None)
Retrieve an existing build from the database by build ID and step name.
 
select(cls, env, build=None, name=None, status=None, db=None)
Retrieve existing build steps from the database that match the specified criteria.
Class Variables
  SUCCESS = 'S'
  IN_PROGRESS = 'I'
  FAILURE = 'F'
Properties
  exists
Whether this build step exists in the database
  successful
Whether the build step was successful
  completed
Whether this build step has completed processing

Inherited from object: __class__

Method Details

__init__(self, env, build=None, name=None, description=None, status=None, started=None, stopped=None)
(Constructor)

 

Initialize a new build step with the specified attributes.

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

Overrides: object.__init__

Property Details

exists

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

successful

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

completed

Whether this build step has completed processing
Get Method:
unreachable(self)