salimfadhley/jenkinsapi — pull request #51 by bradley178 (2012-10-09 17:52:08+00:00)
Title: Currently running build is not always included in the job's "builds" array

Jenkins does not always include a currently running build in the "builds" array for the job API. This ultimately causes a KeyError when calling get_last_build. The fix is to avoid looking up the last build url in the builds array and instead use the url included with lastBuild.