mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-395 handle atlassian specific product version testing
This commit is contained in:
@@ -54,6 +54,10 @@
|
|||||||
#
|
#
|
||||||
# If a version is set, then it is honoured _if_ it is higher than the
|
# If a version is set, then it is honoured _if_ it is higher than the
|
||||||
# cached value (i.e. upgrade path).
|
# cached value (i.e. upgrade path).
|
||||||
|
#
|
||||||
|
# there is some test logic hack to allow atlassian specfic versioning
|
||||||
|
# requirements to work as expected ie - (7.2.0 to upgrade over 7.2.0-rc1) and
|
||||||
|
# (7.2.0-beta1 to upgrade over 7.2.0-m01) in "version is not latest"
|
||||||
|
|
||||||
- name: "Case: Version is latest"
|
- name: "Case: Version is latest"
|
||||||
block:
|
block:
|
||||||
@@ -72,6 +76,12 @@
|
|||||||
|
|
||||||
- name: "Case: Version is not latest"
|
- name: "Case: Version is not latest"
|
||||||
block:
|
block:
|
||||||
|
- name: "create atlassian ordered versioning for comparison"
|
||||||
|
set_fact:
|
||||||
|
download_binary: true
|
||||||
|
move_binary: false
|
||||||
|
atl_product_download: "{{ atl_product_temp_download }}"
|
||||||
|
|
||||||
|
|
||||||
- name: "Case: No cached version, or supplied is higher; use supplied"
|
- name: "Case: No cached version, or supplied is higher; use supplied"
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -79,6 +89,7 @@
|
|||||||
when: force_version_update | bool or
|
when: force_version_update | bool or
|
||||||
not cached.stat.exists or
|
not cached.stat.exists or
|
||||||
atl_product_version is version(atl_cached_version, '>')
|
atl_product_version is version(atl_cached_version, '>')
|
||||||
|
{{atl_product_version ~ "-z"|replace("-m", "-am")}} is version({{atl_cached_version}}, '>')
|
||||||
|
|
||||||
- name: "Case: Cached version is higher or forced, ignore supplied"
|
- name: "Case: Cached version is higher or forced, ignore supplied"
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user