diff --git a/jenkins/scripts/release-tools/clone_repo.sh b/jenkins/scripts/release-tools/clone_repo.sh index a15203c568..50caf0459b 100755 --- a/jenkins/scripts/release-tools/clone_repo.sh +++ b/jenkins/scripts/release-tools/clone_repo.sh @@ -67,8 +67,10 @@ CACHE_DIR="${ZUUL_CACHE_DIR:-/opt/git}" BRANCH="master" REF="" UPSTREAM="https://git.openstack.org" +export GIT_HTTP_LOW_SPEED_TIME=300 +export GIT_HTTP_LOW_SPEED_LIMIT=1000 -OPTS=`getopt -o h --long branch:,cache-dir:,ref:,upstream:,workspace: -n $0 -- "$@"` +OPTS=`getopt -o h --long branch:,cache-dir:,ref:,timeout:,upstream:,workspace: -n $0 -- "$@"` if [ $? != 0 ] ; then echo "Failed parsing options." >&2 print_help @@ -96,6 +98,11 @@ while true; do shift shift ;; + --timeout) + GIT_HTTP_LOW_SPEED_TIME="$2" + shift + shift + ;; --upstream) UPSTREAM="$2" shift