upload-artifacts-with-afs: use upload-afs-synchronzie role
This role moves the synchronize logic for copying the files into the upload-afs-synchronize role from the dependent change. Depends-On: https://review.opendev.org/705368 Change-Id: I7408e0ec9c731f2ae1d40ef3a4526aa67f28d4e0
This commit is contained in:
parent
40a775835d
commit
eff25491f3
@ -4,22 +4,12 @@
|
||||
- name: Create AFS token
|
||||
include_role:
|
||||
name: create-afs-token
|
||||
# NOTE(ianw): the upload-afs role is somewhat structured
|
||||
# around uploading docs, and requires a .root-marker file,
|
||||
# etc. In this case, we just want the whole directory
|
||||
# verbatim.
|
||||
- name: Upload contents of the artifacts folder
|
||||
synchronize:
|
||||
src: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
dest: "/afs/.openstack.org/project/tarballs.opendev.org/{{ zuul.project.name}}/"
|
||||
# can't set group permissions on AFS; see upload-afs role
|
||||
archive: false
|
||||
perms: true
|
||||
times: true
|
||||
recursive: true
|
||||
rsync_opts:
|
||||
- '--safe-links'
|
||||
- '--delete-after'
|
||||
- name: Upload to afs
|
||||
include_role:
|
||||
name: upload-afs-synchronize
|
||||
vars:
|
||||
afs_source: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
afs_target: "/afs/.openstack.org/project/tarballs.opendev.org/{{ zuul.project.name}}/"
|
||||
- name: Destroy AFS token
|
||||
include_role:
|
||||
name: destroy-afs-token
|
||||
|
Loading…
Reference in New Issue
Block a user