From ce9aa591d3ae4df37f336c48016b67379f4f3044 Mon Sep 17 00:00:00 2001 From: Glenn Stewart Date: Wed, 22 Jun 2022 16:34:13 +1000 Subject: [PATCH] ITSD-94667 Fixed an error whereby the obr filename for alternate was coming from a directory (if sourced from a test marketplace URL) --- .../tasks/jira-servicedesk_as_obr.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/roles/product_install/tasks/jira-servicedesk_as_obr.yml b/roles/product_install/tasks/jira-servicedesk_as_obr.yml index 9417e01..aa6a0f5 100644 --- a/roles/product_install/tasks/jira-servicedesk_as_obr.yml +++ b/roles/product_install/tasks/jira-servicedesk_as_obr.yml @@ -49,24 +49,19 @@ when: - atl_source_obr_from_marketplace | bool +# When sourcing jira-servicedesk from marketplace the atl_jsd_build is source by querying api. +# In this case atl_jsd_build must be passed manually by flag + - name: Source jira-servicedesk obr from alternate url block: - name: Alternate URL OBR - Show the obr filename debug: - msg="obr_name={{ atl_obr_download_url | basename }}" + msg="obr_name=jira-servicedesk-application-{{ atl_jsd_build }}.obr" - - name: Alternate URL OBR - Set the obr filename + - name: Alternate OBR - Set the obr filename set_fact: - atl_obr_filename: "{{ atl_obr_download_url | basename }}" - - - name: Alternate URL OBR - Show atl_jsd_build (manual) - debug: - msg="atl_jsd_build={{ atl_jsd_build }}" - - - name: Alernate URL OBR - Show atl_product_version - debug: - msg="atl_product_version={{ atl_product_version }}" + atl_obr_filename: "jira-servicedesk-application-{{ atl_jsd_build }}.obr" when: - not atl_source_obr_from_marketplace | bool