diff --git a/otc_metadata/templates/zuul.yaml.j2 b/otc_metadata/templates/zuul.yaml.j2 index 31a6886..6b7ad87 100644 --- a/otc_metadata/templates/zuul.yaml.j2 +++ b/otc_metadata/templates/zuul.yaml.j2 @@ -2,8 +2,10 @@ - project: merge-mode: squash-merge default-branch: main + {%- if environment != "public" %} templates: - {{ template }} + {%- endif %} vars: sphinx_pdf_files: {%- for doc in docs %} diff --git a/tools/generate_doc_confpy.py b/tools/generate_doc_confpy.py index 5f51c3b..67d5e46 100644 --- a/tools/generate_doc_confpy.py +++ b/tools/generate_doc_confpy.py @@ -359,6 +359,7 @@ def process_repositories(args, service): elif args.cloud_environment == "eu_de": context["template"] = "helpcenter-base-jobs" context["service_type"] = service['service_type'] + context["environment"] = args.target_environment zuul_yaml_content = zuul_yaml_template.render(**context) zuul_yaml_path = pathlib.Path(copy_to, "zuul.yaml")