mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPSENG-395 for some reason chaining the jinja replace on the string append isnt working so doing those in 2 separate facts blocks
This commit is contained in:
@@ -76,23 +76,28 @@
|
|||||||
|
|
||||||
- name: "Case: Version is not latest"
|
- name: "Case: Version is not latest"
|
||||||
block:
|
block:
|
||||||
|
- name: "create atlassian z versioning for comparison"
|
||||||
|
set_fact:
|
||||||
|
atl_z_product_version: "{{ atl_product_version ~ '-z' }}"
|
||||||
|
atl_z_cached_version: "{{ atl_cached_version ~ '-z' }}"
|
||||||
|
|
||||||
- name: "create atlassian ordered versioning for comparison"
|
- name: "create atlassian ordered versioning for comparison"
|
||||||
set_fact:
|
set_fact:
|
||||||
atl_product_normalised_version: "{{atl_product_version ~ '-z'|replace('-m', '-am')}}"
|
atl_product_normalised_version: "{{ atl_z_product_version | replace('-m', '-am') }}"
|
||||||
|
atl_cached_normalised_version: "{{ atl_z_cached_version | replace('-m', '-am') }}"
|
||||||
|
|
||||||
- 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:
|
||||||
atl_download_version: "{{ atl_product_version }}"
|
atl_download_version: "{{ atl_product_version }}"
|
||||||
when: force_version_update | bool or
|
when: force_version_update | bool or
|
||||||
not cached.stat.exists or
|
not cached.stat.exists or
|
||||||
atl_product_normalised_version is version(atl_cached_version, '>')
|
atl_product_normalised_version is version(atl_cached_normalised_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:
|
||||||
atl_download_version: "{{ atl_cached_version }}"
|
atl_download_version: "{{ atl_cached_version }}"
|
||||||
when: cached.stat.exists and
|
when: cached.stat.exists and
|
||||||
atl_product_version is version(atl_cached_version, '<=') and
|
atl_product_normalised_version is version(atl_cached_normalised_version, '<=') and
|
||||||
not force_version_update | bool
|
not force_version_update | bool
|
||||||
|
|
||||||
when: not version_is_latest
|
when: not version_is_latest
|
||||||
|
|||||||
Reference in New Issue
Block a user