mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
---
|
|
- name: Force all notified handlers to run at this point, not waiting for normal sync points
|
|
meta: flush_handlers
|
|
|
|
- name: wait for port 7990 to be up
|
|
wait_for:
|
|
port: 7990
|
|
delay: 60
|
|
|
|
- name: wait for path to become available
|
|
wait_for:
|
|
path: "{{ atl_product_home_shared }}/data/migration/import"
|
|
delay: 60
|
|
|
|
- name: Copy Bitbucket dataset from s3
|
|
get_url:
|
|
url: "{{ atl_bitbucket_dataset_url }}"
|
|
dest: "{{ atl_product_home_shared }}/data/migration/import"
|
|
|
|
- name: Invoke Import API
|
|
uri:
|
|
url: http://localhost:7990/rest/api/1.0/migration/imports
|
|
user: admin
|
|
password: "{{ atl_bitbucket_admin_password }}"
|
|
method: POST
|
|
follow_redirects: yes
|
|
force_basic_auth: yes
|
|
creates: "{{ atl_product_home_shared }}/data/migration/import/lock.file"
|
|
body: "{ \"archivePath\": \"{{ atl_bitbucket_dataset_url | basename }}\" }"
|
|
body_format: json
|
|
return_content: yes
|
|
register: response
|
|
until: response.status == 200
|
|
retries: 6
|
|
delay: 15
|
|
failed_when: "'INITIALISING' not in response.content" |