Skip to content

Commit

Permalink
Merge pull request #1455 from benallard/patch-1
Browse files Browse the repository at this point in the history
We want the first PrevSuccessfullBuild, not the last one !
  • Loading branch information
Mikhail Sobolev committed Dec 16, 2014
2 parents 037c5c9 + d326aaf commit 393a154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/db/builds.py
Expand Up @@ -72,7 +72,7 @@ def getPrevSuccessfulBuild(self, builderid, number, ssBuild):
matchssBuild = set([(ss['repository'],
ss['branch'],
ss['codebase']) for ss in ssBuild])
while True:
while rv is None:
# Get some recent successfull builds on the same builder
prevBuilds = yield self._getRecentBuilds(whereclause=((tbl.c.builderid == builderid) &
(tbl.c.number < number) &
Expand Down

0 comments on commit 393a154

Please sign in to comment.