From c33ae0e896d4ef5f698d935756088e2939a781df Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 26 Oct 2015 13:14:56 -0400 Subject: [PATCH] BitBucket is being slow - increase the timeout Fixes #721 --- Dockerfile | 2 +- buildtrigger/bitbuckethandler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c5ad98b9..5a757aa21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND noninteractive ENV HOME /root # Install the dependencies. -RUN apt-get update # 23OCT2015 +RUN apt-get update # 26OCT2015 # New ubuntu packages should be added as their own apt-get install lines below the existing install commands RUN apt-get install -y git python-virtualenv python-dev libjpeg8 libjpeg62 libjpeg62-dev libevent-2.0.5 libevent-dev gdebi-core g++ libmagic1 phantomjs nodejs npm libldap-2.4-2 libldap2-dev libsasl2-modules libsasl2-dev libpq5 libpq-dev libfreetype6-dev libffi-dev libgpgme11 libgpgme11-dev diff --git a/buildtrigger/bitbuckethandler.py b/buildtrigger/bitbuckethandler.py index e14d75b09..adb7e10d1 100644 --- a/buildtrigger/bitbuckethandler.py +++ b/buildtrigger/bitbuckethandler.py @@ -267,7 +267,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler): trigger_uuid = self.trigger.uuid callback_url = '%s/oauth1/bitbucket/callback/trigger/%s' % (get_app_url(), trigger_uuid) - return BitBucket(key, secret, callback_url, timeout=5) + return BitBucket(key, secret, callback_url, timeout=15) def _get_authorized_client(self): """ Returns an authorized API client. """