From e6ead7a16fddcf856e41c257a9f3d072f085564a Mon Sep 17 00:00:00 2001 From: przemkalit Date: Mon, 23 Sep 2024 10:03:17 +0200 Subject: [PATCH] feat: export scm_refspec of project (#912) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: export scm_refspace of project * fix: typo --------- Co-authored-by: Przemyslaw Kalitowski Co-authored-by: Ivan Aragonés Muniesa <26822043+ivarmu@users.noreply.github.com> --- changelogs/fragments/filetree_create_scm_refspec.yml | 2 ++ roles/filetree_create/templates/current_projects.j2 | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/filetree_create_scm_refspec.yml diff --git a/changelogs/fragments/filetree_create_scm_refspec.yml b/changelogs/fragments/filetree_create_scm_refspec.yml new file mode 100644 index 000000000..d4f692d4b --- /dev/null +++ b/changelogs/fragments/filetree_create_scm_refspec.yml @@ -0,0 +1,2 @@ +minor_changes: + - filetree_create able to export scm_refspec of project diff --git a/roles/filetree_create/templates/current_projects.j2 b/roles/filetree_create/templates/current_projects.j2 index ea2e2beaf..3208a9ac6 100644 --- a/roles/filetree_create/templates/current_projects.j2 +++ b/roles/filetree_create/templates/current_projects.j2 @@ -16,6 +16,7 @@ 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 }}" + scm_refspec: "{{ current_projects_asset_value.scm_refspec }} {% 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 }}"