mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -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_format: json
|
||||
return_content: yes
|
||||
register: response
|
||||
until: response.status == 200
|
||||
register: output
|
||||
until: output.status == 200
|
||||
retries: 6
|
||||
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
|
||||
debug: var=response
|
||||
|
||||
|
||||
- name: get job id
|
||||
debug: var=response.json.state
|
||||
with_items: "{{ response }}"
|
||||
|
||||
|
||||
- name: get job id
|
||||
debug: var=response.json.id
|
||||
with_items: "{{ response }}"
|
||||
debug: var=output
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user