Artifact to AFS publishing - don't use archive flag
The -a flag to rsync tries to maintain owner and group permissions
which doesn't work copying to AFS.
This sets the flags to the same as the upload-afs role at [1]
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: Destroy AFS token
include_role:
name: destroy-afs-token
