mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
add import status task
This commit is contained in:
committed by
Steve Smith
parent
36003c553b
commit
bce7dbc7af
@@ -33,11 +33,21 @@
|
|||||||
until: output.status == 200
|
until: output.status == 200
|
||||||
retries: 6
|
retries: 6
|
||||||
delay: 15
|
delay: 15
|
||||||
failed_when: output.state != 'INITIALISING'
|
failed_when: "'INITIALISING' not in output.content"
|
||||||
#failed_when: "'INITIALISING' not in output.content"
|
|
||||||
|
|
||||||
- name: get status of import
|
- name: get status of import
|
||||||
debug: var=output.json.state
|
debug: var=output.json.state
|
||||||
|
|
||||||
|
- name: get status of import
|
||||||
|
debug: var=output.json.id
|
||||||
|
|
||||||
|
- name: get import status
|
||||||
|
uri:
|
||||||
|
url: "{{ atl_bitbucket_baseurl }}/rest/api/1.0/migration/imports/{{ output.json.id }}"
|
||||||
|
user: admin
|
||||||
|
password: "{{ atl_bitbucket_admin_password }}"
|
||||||
|
method: get
|
||||||
|
force_basic_auth: yes
|
||||||
|
body_format: json
|
||||||
|
return_content: yes
|
||||||
|
register: import_status
|
||||||
Reference in New Issue
Block a user