ITSD-94667 Debug Tue 14 Jun 2022 16:30:47 AEST

This commit is contained in:
Glenn Stewart
2022-06-14 16:30:47 +10:00
parent 1eabc7bbc4
commit 0f5d1fb39b
2 changed files with 35 additions and 33 deletions

View File

@@ -37,7 +37,8 @@ atl_servicedesk_url_map:
atl_servicedesk_metadata_url: "{{ atl_servicedesk_url_map[atl_product_version] | default(atl_servicedesk_url_map['default']) }}"
atl_install_jsd_as_obr: false
atl_marketplace_obr: true
atl_source_obr_from_marketplace: true
atl_source_obr_from_url: false
atl_servicedesk_download_file: "{{ atl_installer_temp }}/jira-servicedesk.{{ atl_product_version }}.obr"
force_version_update: false

View File

@@ -1,49 +1,50 @@
---
# - name: Source jira-servicedesk obr from marketplace
# block:
- name: Check for alternate obr download url
set_fact:
atl_marketplace_obr: false
atl_source_obr_from_marketplace: false
atl_source_obr_from_url: true
when:
- atl_obr_download_url is defined
- name: Get the installer product version info
- name: Source jira-servicedesk obr from marketplace
block:
- name: Get the installer product version info
uri:
url: "{{ atl_mpac_products }}/key/jira/versions/name/{{ atl_product_version }}"
return_content: yes
register: atl_product_version_info
- name: Show the returned build number
- name: Show the returned build number
debug:
msg="buildNumber={{ atl_product_version_info.json.buildNumber }}"
- name: Get the JSD build version info
- name: Get the JSD build version info
uri:
url: "{{ atl_mpac_products }}/key/jira-servicedesk/versions/latest?application=\
jira&applicationBuild={{ atl_product_version_info.json.buildNumber }}"
return_content: yes
register: atl_jsd_build_info
- name: Show the returned obr binary href
- name: Show the returned obr binary href
debug:
msg="obr_ref={{ atl_jsd_build_info.json._embedded.artifact._links.binary.href }}"
- name: Set atl_obr_download_url
- name: Set atl_obr_download_url
set_fact:
atl_obr_download_url: "{{ atl_jsd_build_info.json._embedded.artifact._links.binary.href }}"
- name: Show the obr filename
- name: Show the obr filename
debug:
msg="obr_name=jira-servicedesk-application-{{ atl_jsd_build_info.json.name }}.obr"
- name: Set the obr filename
- name: Set the obr filename
set_fact:
atl_obr_filename: "jira-servicedesk-application-{{ atl_jsd_build_info.json.name }}.obr"
# when:
# - atl_obr_download_url is undefined
when:
- atl_source_obr_from_marketplace
- name: is shared_home set ?
debug: