mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-101 fixed version in version_from_file and added better obr unpacking
This commit is contained in:
@@ -14,12 +14,12 @@ def test_version_is_correct(host):
|
|||||||
assert verfile.content.decode("UTF-8").strip() == "7.13.1"
|
assert verfile.content.decode("UTF-8").strip() == "7.13.1"
|
||||||
|
|
||||||
def test_is_downloaded(host):
|
def test_is_downloaded(host):
|
||||||
installer = host.file('/media/atl/downloads/jira-core.7.13.1-x64.bin')
|
installer = host.file('/media/atl/downloads/jira-core.7.9.0-x64.bin')
|
||||||
assert installer.exists
|
assert installer.exists
|
||||||
assert installer.user == 'root'
|
assert installer.user == 'root'
|
||||||
|
|
||||||
def test_completed_lockfile(host):
|
def test_completed_lockfile(host):
|
||||||
lockfile = host.file('/media/atl/downloads/jira-core.7.13.1-x64.bin_completed')
|
lockfile = host.file('/media/atl/downloads/jira-core.7.9.0-x64.bin_completed')
|
||||||
assert lockfile.exists
|
assert lockfile.exists
|
||||||
assert lockfile.user == 'root'
|
assert lockfile.user == 'root'
|
||||||
|
|
||||||
|
|||||||
@@ -163,10 +163,16 @@
|
|||||||
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"
|
creates: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/jira-servicedesk-application-{{ atl_jsd_build_info.json.name }}.jar"
|
||||||
extra_opts:
|
list_files: no
|
||||||
- -j
|
exclude:
|
||||||
- -n
|
- M*
|
||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: Move JSD dependency jars into the installed-plugins dir
|
||||||
|
shell:
|
||||||
|
cmd: "mv {{ atl_product_version_cache_dir }}/plugins/installed-plugins/dependencies/*.jar {{ atl_product_version_cache_dir }}/plugins/installed-plugins"
|
||||||
|
creates: "{{ atl_product_version_cache_dir }}/plugins/installed-plugins/servicedesk-core-ui-plugin-{{ atl_jsd_build_info.json.name }}-REL-0022.jar"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user