From a58ee37f5312257b605855348f7c830415ea7125 Mon Sep 17 00:00:00 2001 From: przemkalit Date: Wed, 4 Sep 2024 15:07:46 +0200 Subject: [PATCH] fix: missing EE while exporting the project (#899) Co-authored-by: Przemyslaw Kalitowski --- changelogs/fragments/filetree_create_project_ee.yml | 3 +++ roles/filetree_create/templates/current_projects.j2 | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/filetree_create_project_ee.yml diff --git a/changelogs/fragments/filetree_create_project_ee.yml b/changelogs/fragments/filetree_create_project_ee.yml new file mode 100644 index 000000000..38e5d83b2 --- /dev/null +++ b/changelogs/fragments/filetree_create_project_ee.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - Fixed missing execution environemnt while exporting the project diff --git a/roles/filetree_create/templates/current_projects.j2 b/roles/filetree_create/templates/current_projects.j2 index 3bf0200de..ea2e2beaf 100644 --- a/roles/filetree_create/templates/current_projects.j2 +++ b/roles/filetree_create/templates/current_projects.j2 @@ -16,6 +16,9 @@ controller_projects: scm_delete_on_update: "{{ current_projects_asset_value.scm_delete_on_update }}" scm_update_on_launch: "{{ current_projects_asset_value.scm_update_on_launch }}" scm_update_cache_timeout: "{{ current_projects_asset_value.scm_update_cache_timeout }}" +{% endif %} +{% if is_aap and current_job_templates_asset_value.summary_fields.default_environment is defined %} + default_environment: "{{ current_job_templates_asset_value.summary_fields.default_environment.name }}" {% endif %} allow_override: "{{ current_projects_asset_value.allow_override }}" timeout: {{ current_projects_asset_value.timeout }}