forked from openlp/openlp
more fixes
This commit is contained in:
parent
8997fc07e0
commit
acb309c54a
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user