mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2026-07-30 17:50:47 -05:00
ITPLT-4718 Harden JSM Marketplace lookup
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
ansible.builtin.uri:
|
||||
url: "{{ atl_mpac_api_base_url }}/app-software/{{ item }}/versions?parentSoftwareId=jira&state=ACTIVE&limit=1"
|
||||
return_content: true
|
||||
status_code:
|
||||
- 200
|
||||
- 404
|
||||
loop: "{{ atl_jsm_app_software_ids }}"
|
||||
loop_control:
|
||||
label: "{{ item }}"
|
||||
@@ -14,7 +17,7 @@
|
||||
|
||||
- name: Set compatible latest JSM versions
|
||||
ansible.builtin.set_fact:
|
||||
atl_jsm_latest_versions: "{{ atl_jsm_latest_version_info.results | map(attribute='json') | map(attribute='versions') | flatten | list }}"
|
||||
atl_jsm_latest_versions: "{{ atl_jsm_latest_version_info.results | selectattr('status', 'equalto', 200) | map(attribute='json') | selectattr('versions', 'defined') | map(attribute='versions') | flatten | list }}"
|
||||
|
||||
- name: Ensure Marketplace returned a latest JSM version
|
||||
ansible.builtin.assert:
|
||||
|
||||
Reference in New Issue
Block a user