Merge "upload-artifacts-with-afs: use upload-afs-synchronzie role"

This commit is contained in:
Zuul 2020-02-05 03:27:44 +00:00 committed by Gerrit Code Review
commit 44384bc1a5
1 changed files with 6 additions and 16 deletions

View File

@ -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