summaryrefslogtreecommitdiff
path: root/tests/templates
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-01-14 14:16:56 +0000
committerGerrit Code Review <review@openstack.org>2020-01-14 14:16:56 +0000
commitf91ddee1c18cf1000f190396ecee671708b88bdd (patch)
tree516b70fa97d5f857947d0fefb35c0581cf7bcc07 /tests/templates
parent3b02eae864a85ec4796f32ea111edbbb30a009b0 (diff)
parent8788a452a9ab7c1f3a94986c2a55e887d1530bbf (diff)
downloadkolla-f91ddee1c18cf1000f190396ecee671708b88bdd.tar.gz
kolla-f91ddee1c18cf1000f190396ecee671708b88bdd.zip
Merge "CentOS 8: Don't force tag in build jobs"
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/kolla-build.conf.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/templates/kolla-build.conf.j2 b/tests/templates/kolla-build.conf.j2
index 37b06aca6..8a7bc4f20 100644
--- a/tests/templates/kolla-build.conf.j2
+++ b/tests/templates/kolla-build.conf.j2
@@ -2,7 +2,9 @@
debug = true
{% if publisher %}
namespace = kolla
-tag = {{ zuul.tag if zuul.pipeline == "release" else zuul.branch | basename }}
+{# TODO(mgoddard): Remove tag_suffix when CentOS 7 is no longer supported. #}
+{% set tag_suffix = '-centos8' if ansible_distribution == 'centos' and ansible_distribution_major_version == '8' else '' %}
+tag = {{ (zuul.tag if zuul.pipeline == "release" else zuul.branch | basename) ~ tag_suffix }}
{% endif %}
push = false
logs_dir = {{ kolla_build_logs_dir }}