aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2020-01-28 16:39:40 +0000
committerMark Goddard <mark@stackhpc.com>2020-01-28 16:44:27 +0000
commit8b86c8194b2726dcecbc1487a8f567043828dcde (patch)
tree64fde5cdc0f04330912d7b9c574e4511e07ebb35 /tools
parent4d0c442b883d6fbea5eba92a300f6b2def717d55 (diff)
downloadkolla-ansible-8b86c8194b2726dcecbc1487a8f567043828dcde.tar.gz
kolla-ansible-8b86c8194b2726dcecbc1487a8f567043828dcde.zip
CI: Reduce unnecessary gate image builds
Due to regex matching of images, we are currently building quite a few unnecessary images in CI. Images that can unexpectedly match: * barbican-keystone-listener * ironic-neutron-agent * prometheus-haproxy-exporter * prometheus-memcached-exporter This change improves the situation by anchoring matches to the start of the name. A full solution would be to specify every image required for each job. This would be quite verbose and require maintenance. Change-Id: I7387ccd0cb394c54c79bfba8b1c09fce7ee2973e
Diffstat (limited to 'tools')
-rwxr-xr-xtools/setup_gate.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh
index 50da83519..7cee1467d 100755
--- a/tools/setup_gate.sh
+++ b/tools/setup_gate.sh
@@ -30,45 +30,45 @@ function setup_openstack_clients {
function setup_config {
if [[ $SCENARIO != "bifrost" ]]; then
- GATE_IMAGES="cron,fluentd,glance,haproxy,keepalived,keystone,kolla-toolbox,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,horizon,chrony,heat,placement"
+ GATE_IMAGES="^cron,^fluentd,^glance,^haproxy,^keepalived,^keystone,^kolla-toolbox,^mariadb,^memcached,^neutron,^nova-,^openvswitch,^rabbitmq,^horizon,^chrony,^heat,^placement"
else
GATE_IMAGES="bifrost"
fi
if [[ $SCENARIO == "ceph" ]]; then
- GATE_IMAGES+=",ceph,cinder"
+ GATE_IMAGES+=",^ceph,^cinder"
fi
if [[ $SCENARIO == "ceph-ansible" ]]; then
- GATE_IMAGES+=",cinder"
+ GATE_IMAGES+=",^cinder"
fi
if [[ $SCENARIO == "cinder-lvm" ]]; then
- GATE_IMAGES+=",cinder,iscsid"
+ GATE_IMAGES+=",^cinder,^iscsid"
if [[ $BASE_DISTRO != "centos" ]] || [[ $BASE_DISTRO_MAJOR_VERSION -eq 7 ]]; then
- GATE_IMAGES+=",tgtd"
+ GATE_IMAGES+=",^tgtd"
fi
fi
if [[ $SCENARIO == "zun" ]]; then
- GATE_IMAGES+=",zun,kuryr,etcd,cinder,iscsid"
+ GATE_IMAGES+=",^zun,^kuryr,^etcd,^cinder,^iscsid"
if [[ $BASE_DISTRO != "centos" ]] || [[ $BASE_DISTRO_MAJOR_VERSION -eq 7 ]]; then
- GATE_IMAGES+=",tgtd"
+ GATE_IMAGES+=",^tgtd"
fi
fi
if [[ $SCENARIO == "scenario_nfv" ]]; then
- GATE_IMAGES+=",tacker,mistral,redis,barbican"
+ GATE_IMAGES+=",^tacker,^mistral,^redis,^barbican"
fi
if [[ $SCENARIO == "ironic" ]]; then
- GATE_IMAGES+=",dnsmasq,ironic,iscsid"
+ GATE_IMAGES+=",^dnsmasq,^ironic,^iscsid"
fi
if [[ $SCENARIO == "masakari" ]]; then
- GATE_IMAGES+=",masakari"
+ GATE_IMAGES+=",^masakari"
fi
if [[ $SCENARIO == "mariadb" ]]; then
- GATE_IMAGES="cron,haproxy,keepalived,kolla-toolbox,mariadb"
+ GATE_IMAGES="^cron,^haproxy,^keepalived,^kolla-toolbox,^mariadb"
fi
# NOTE(yoctozepto): we cannot build and push at the same time on debian