From 17f0e013300bcb8d34eb8323786efd89356ccbc4 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 7 Feb 2014 12:06:52 -0500 Subject: [PATCH] Add logs about the pypi mirror Makes it easier to diagnose when we look at logs if it shows if we using the internal mirror or not. Change-Id: I61945e742dc7dcb021ed20cbace4196b32d192c4 --- modules/jenkins/files/slave_scripts/select-mirror.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/jenkins/files/slave_scripts/select-mirror.sh b/modules/jenkins/files/slave_scripts/select-mirror.sh index 146ed45ac7..9cef050829 100755 --- a/modules/jenkins/files/slave_scripts/select-mirror.sh +++ b/modules/jenkins/files/slave_scripts/select-mirror.sh @@ -36,6 +36,7 @@ EOF if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1 then export TOX_INDEX_URL='http://pypi.openstack.org/openstack' + echo "Switching on internal pypi mirror $TOX_INDEX_URL for $org/$project" cat < ~/.pydistutils.cfg [easy_install] index_url = http://pypi.openstack.org/openstack @@ -45,6 +46,7 @@ EOF index-url = http://pypi.openstack.org/openstack EOF else + echo "$org/$project will not use the internal openstack pypi mirror" cat < ~/.pip/pip.conf [global] timeout = 60