Fixed #1372 -- sleep before checking if the build completed to ensure the buidl exists

This commit is contained in:
Alex Gaynor 2014-12-16 09:32:59 -08:00
parent 900ce861b1
commit d6b059885a

View file

@ -17,6 +17,9 @@ JENKINS_URL = "https://jenkins.cryptography.io/job/cryptography-wheel-builder"
def wait_for_build_completed(session):
# Wait 3 seconds before actually checking if the build is complete, to
# ensure that it had time to really start.
time.sleep(3)
while True:
response = session.get(
"{0}/lastBuild/api/json/".format(JENKINS_URL),