more fixes

This commit is contained in:
Tim Bentley 2017-12-29 09:52:58 +00:00
parent 8997fc07e0
commit acb309c54a

View File

@ -158,11 +158,12 @@ class JenkinsTrigger(object):
"""
queue_info = self.server.get_queue_info()
tries = 0
while queue_info and tries < 50:
loop_count = 100
while queue_info and tries < loop_count:
tries += 1
time.sleep(0.75)
time.sleep(1)
queue_info = self.server.get_queue_info()
if tries >= 50:
if tries >= loop_count:
raise Exception('Build has not started yet, it may be stuck in the queue.')
return self.server.get_build_info(job_name, build_number)