generateFinishedBuilds(branches=[],
num_builds=None,
max_buildnum=None,
finished_before=None,
max_search=200)
| source code
|
Return a generator that will produce IBuildStatus objects each time
you invoke its .next() method, starting with the most recent finished
build, then the previous build, and so on back to the oldest build
available.
- Parameters:
branches - this is a list of branch names, and the generator will only
produce builds that involve the given branches. If the list is
empty, the generator will produce all builds regardless of what
branch they used.
num_builds - if provided, the generator will stop after providing this many
builds. The default of None means to produce as many builds as
possible.
max_buildnum - if provided, the generator will start by providing the build with
this number, or the highest-numbered preceding build (i.e. the
generator will not produce any build numbered *higher* than
max_buildnum). The default of None means to start with the most
recent finished build. -1 means the same as None. -2 means to
start with the next-most-recent completed build, etc.
finished_before (int: a timestamp, seconds since the epoch) - if provided, do not produce any builds that finished after the
given timestamp.
max_search (int) - this method may have to examine a lot of builds to find some that
match the search parameters, especially if there aren't any
matching builds. This argument imposes a hard limit on the number
of builds that will be examined.
|