mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
changed response to output
This commit is contained in:
committed by
Steve Smith
parent
69907ad570
commit
12853e9a55
@@ -29,24 +29,15 @@
|
|||||||
body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }"
|
body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }"
|
||||||
body_format: json
|
body_format: json
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: response
|
register: output
|
||||||
until: response.status == 200
|
until: output.status == 200
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 15
|
delay: 15
|
||||||
failed_when: response.json.state != 'INITIALISING'
|
#failed_when: output.json.state != 'INITIALISING'
|
||||||
|
failed_when: failed_when: "'INITIALISING' not in output.content"
|
||||||
|
|
||||||
- name: get status of import
|
- name: get status of import
|
||||||
debug: var=response
|
debug: var=output
|
||||||
|
|
||||||
|
|
||||||
- name: get job id
|
|
||||||
debug: var=response.json.state
|
|
||||||
with_items: "{{ response }}"
|
|
||||||
|
|
||||||
|
|
||||||
- name: get job id
|
|
||||||
debug: var=response.json.id
|
|
||||||
with_items: "{{ response }}"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user