diff --git a/modules/jenkins/files/slave_scripts/select-mirror.sh b/modules/jenkins/files/slave_scripts/select-mirror.sh index 6aea1cbf95..146ed45ac7 100755 --- a/modules/jenkins/files/slave_scripts/select-mirror.sh +++ b/modules/jenkins/files/slave_scripts/select-mirror.sh @@ -31,13 +31,9 @@ cat < ~/.pip/pip.conf timeout = 60 EOF -# Noop, do not setup any mirrors to allow requirements to talk to the -# outside world. -if [ "$org" == "openstack" ] && [ "$project" == "requirements" ] -then - echo "Not changing mirror" -# For OpenStack projects, use the pypi.openstack.org mirror exclusively -elif [ "$org" == "openstack" ] +# For project listed in openstack/requirements, +# use the pypi.openstack.org mirror exclusively +if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1 then export TOX_INDEX_URL='http://pypi.openstack.org/openstack' cat < ~/.pydistutils.cfg