sync: use proposal-bot + gerrit ssh API to pull projects

With the transition to OpenDev, we cannot rely on the old URLs
and this is a much cleaner solution that leverages the proposa-bot
user to get all the information we need.

Change-Id: Ie5dae335c12e178928186637b7b73f97c6a694ab
This commit is contained in:
Mohammed Naser 2019-04-20 16:17:35 -04:00
parent c68f0f5c10
commit 0f4872e823
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ excluded_projects="$(echo ${excluded_projects} | tr ' ' '\n')"
# The output should only contain a list of projects or an empty string.
# Anything else will probably make the CI bots to fail.
curl --retry 10 -s --fail http://git.openstack.org/cgit | grep -o \
"openstack/openstack-ansible-[[:alnum:]_-]*" | \
ssh -p 29418 proposal-bot@review.opendev.org gerrit ls-projects --prefix openstack/openstack-ansible- | \
grep -v -F "${excluded_projects}" | uniq | sort -n
for x in ${extra_included_projects[@]}; do