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 (cherry picked from commit0f4872e823
) (cherry picked from commit17a4ca8d83
)
This commit is contained in:
parent
31cf1488f8
commit
cd9e01e3f5
|
@ -65,8 +65,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
|
||||
|
|
Loading…
Reference in New Issue