diff --git a/zuul/launcher/jenkins.py b/zuul/launcher/jenkins.py index 1e59a57ffb..705fbdf787 100644 --- a/zuul/launcher/jenkins.py +++ b/zuul/launcher/jenkins.py @@ -285,8 +285,8 @@ for build %s" % (item['id'], build)) info can not be retreived" % build) lostbuilds.append(build) continue - if not info['result']: - # It hasn't finished, continue + if info['building']: + # It has not finished. continue finish_time = (info['timestamp'] + info['duration']) / 1000 if time.time() - finish_time > JENKINS_GRACE_TIME: