mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
ITOPSENG-101 simpler work around junk paths in unarchive
This commit is contained in:
@@ -32,7 +32,6 @@ def test_is_unpacked(host):
|
|||||||
assert installer.mode == 0o0755
|
assert installer.mode == 0o0755
|
||||||
|
|
||||||
def test_obr_is_downloaded(host):
|
def test_obr_is_downloaded(host):
|
||||||
|
|
||||||
installer = host.file('/media/atl/downloads/jira-servicedesk-application-3.16.1.obr')
|
installer = host.file('/media/atl/downloads/jira-servicedesk-application-3.16.1.obr')
|
||||||
assert installer.exists
|
assert installer.exists
|
||||||
assert installer.user == 'root'
|
assert installer.user == 'root'
|
||||||
|
|||||||
@@ -156,18 +156,17 @@
|
|||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
|
|
||||||
|
# Note as ansible unarchive cant handle "-j junk paths" we need to ignore errors to bypass the path verify
|
||||||
- name: Unpack the obr into the installed-plugins dir
|
- name: Unpack the obr into the installed-plugins dir
|
||||||
unarchive:
|
unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "{{ atl_obr_download }}"
|
src: "{{ atl_obr_download }}"
|
||||||
dest: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins"
|
dest: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins"
|
||||||
|
creates: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/jira-servicedesk-application-{{ atl_jsd_build_info.json.name }}.jar"
|
||||||
|
extra_opts:
|
||||||
|
- -j
|
||||||
|
- -n
|
||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
|
ignore_errors: yes
|
||||||
- name: Copy JSD dependency jars into the installed-plugins dir
|
|
||||||
copy:
|
|
||||||
src: "{{ item }}"
|
|
||||||
dest: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins"
|
|
||||||
remote_src: true
|
|
||||||
with_fileglob: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/dependencies/*.jar"
|
|
||||||
Reference in New Issue
Block a user