gen-projects-list.sh: Add ability to include extra OSA projects
Extend the script to allow us to define extra projects which should be taken into consideration when syncing the test files. One such project is 'ansible-hardening' which has replaced the openstack-ansible-security one. This project doesn't match the usual 'openstack/openstack-*' pattern and as such it needs to be explicitely added. Change-Id: I97a5708b6897402f21ee87d5d637f7949059fd49
This commit is contained in:
parent
7ad192b56d
commit
d17eb95b52
|
@ -29,6 +29,10 @@ exclude_project() {
|
|||
excluded_projects+="openstack/$1 "
|
||||
}
|
||||
|
||||
extra_include_project() {
|
||||
extra_included_projects+="openstack/$1 "
|
||||
}
|
||||
|
||||
############## EXCLUDED PROJECTS ######################
|
||||
#
|
||||
# List of the projects that need to be excluded for various
|
||||
|
@ -47,6 +51,16 @@ exclude_project openstack-ansible-security
|
|||
#
|
||||
############## END OF EXCLUDED PROJECTS ###############
|
||||
|
||||
############## INCLUDED PROJECTS ######################
|
||||
#
|
||||
# List of additional projects that need to be included for various
|
||||
# reasons
|
||||
#
|
||||
# ansible-hardening. Used by AIO in favor of the retired
|
||||
# openstack-ansible-security
|
||||
extra_include_project ansible-hardening
|
||||
############## END OF INCLUDED PROJECTS ###############
|
||||
|
||||
# Replace spaces with newlines as expected by grep -F
|
||||
excluded_projects="$(echo ${excluded_projects} | tr ' ' '\n')"
|
||||
|
||||
|
@ -56,3 +70,7 @@ excluded_projects="$(echo ${excluded_projects} | tr ' ' '\n')"
|
|||
curl --retry 10 -s --fail http://git.openstack.org/cgit | grep -o \
|
||||
"openstack/openstack-ansible-[[:alnum:]_-]*" | \
|
||||
grep -v -F "${excluded_projects}" | uniq | sort -n
|
||||
|
||||
for x in ${extra_included_projects[@]}; do
|
||||
echo $x
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue