mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
copy to imports folder on shared home
This commit is contained in:
committed by
Steve Smith
parent
e3a1eb8410
commit
b1e821de12
@@ -1,24 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Check if import directory exists
|
|
||||||
stat:
|
|
||||||
path: /tmp/import
|
|
||||||
register: import_dir
|
|
||||||
|
|
||||||
- name: create directory structure if it note exists
|
|
||||||
file:
|
|
||||||
path: /tmp/import
|
|
||||||
state: directory
|
|
||||||
mode: 0644
|
|
||||||
group: root
|
|
||||||
owner: root
|
|
||||||
when: import_dir.stat.exists == false
|
|
||||||
|
|
||||||
- name: Copy Bitbucket dataset from s3
|
|
||||||
get_url:
|
|
||||||
url: "{{ atl_bitbucket_dataset_url }}"
|
|
||||||
dest: /tmp/import
|
|
||||||
|
|
||||||
- name: Force all notified handlers to run at this point, not waiting for normal sync points
|
- name: Force all notified handlers to run at this point, not waiting for normal sync points
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
@@ -28,6 +8,11 @@
|
|||||||
delay: 10
|
delay: 10
|
||||||
timeout: 60
|
timeout: 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
|
- name: Invoke Import API
|
||||||
uri:
|
uri:
|
||||||
url: "{{ atl_bitbucket_baseurl }}/rest/api/1.0/migration/imports"
|
url: "{{ atl_bitbucket_baseurl }}/rest/api/1.0/migration/imports"
|
||||||
|
|||||||
Reference in New Issue
Block a user